Skip to content
Snippets Groups Projects
Commit e087566a authored by Maxime Jacquemin's avatar Maxime Jacquemin Committed by David Bühler
Browse files

[ivette] Unfolding everything by default

parent 41327672
No related branches found
No related tags found
No related merge requests found
......@@ -315,10 +315,7 @@ export default function ASTview(): JSX.Element {
const unfoldAll = (): void => buffer.forEach(CodeMirror.commands.unfoldAll);
const defaultFold = React.useCallback((): void => {
buffer.forEach((cm) => {
CodeMirror.commands.foldAll(cm);
cm.foldCode(0, undefined, 'unfold');
});
buffer.forEach((cm) => { CodeMirror.commands.unfoldAll(cm); });
}, [buffer]);
React.useEffect(() => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment