Skip to content

Commit db956cc

Browse files
committed
Workaround foldGutter not showing on first view
1 parent b87463a commit db956cc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

public/js/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,9 @@ function changeMode(type) {
659659
addStatusBar();
660660
updateStatusBar();
661661
}
662+
//work around foldGutter might not init properly
663+
editor.setOption('foldGutter', false);
664+
editor.setOption('foldGutter', true);
662665
} else {
663666
ui.toolbar.uploadImage.fadeOut();
664667
}

0 commit comments

Comments
 (0)