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 (#5955)
  • Loading branch information
edoroshenko authored and marijnh committed Jul 30, 2019
1 parent 22939a9 commit ff978a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/fold/foldgutter.js
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 ff978a0

Please sign in to comment.