Skip to content

Commit

Permalink
[foldgutter addon] Pass all options to the foldCode method
Browse files Browse the repository at this point in the history
... to enable redefinition of the `widget` prop (codemirror#5955)
  • Loading branch information
edoroshenko authored and cone56 committed Jan 6, 2020
1 parent ac64a5c commit a215e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/fold/foldgutter.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
if (gutter != opts.gutter) return;
var folded = isFolded(cm, line);
if (folded) folded.clear();
else cm.foldCode(Pos(line, 0), opts.rangeFinder);
else cm.foldCode(Pos(line, 0), opts);
}

function onChange(cm) {
Expand Down

0 comments on commit a215e08

Please sign in to comment.