Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #13310 from thehogfather/thehogfather/issue-13282-…
Browse files Browse the repository at this point in the history
…save-folds-perf

Addressed performance problems when navigating between large code folded files
  • Loading branch information
swmitra authored Apr 24, 2017
2 parents 70901f2 + a16d58e commit d4030b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extensions/default/CodeFolding/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,14 @@ define(function (require, exports, module) {
}

/**
* When a brand new editor is seen, initialise fold-gutter and restore line folds in it. Save line folds in
* departing editor in case it's getting closed.
* When a brand new editor is seen, initialise fold-gutter and restore line folds in it.
* Save line folds in departing editor in case it's getting closed.
* @param {object} event the event object
* @param {Editor} current the current editor
* @param {Editor} previous the previous editor
*/
function onActiveEditorChanged(event, current, previous) {
if (current) {
if (current && !current._codeMirror._lineFolds) {
enableFoldingInEditor(current);
}
if (previous) {
Expand Down

0 comments on commit d4030b8

Please sign in to comment.