Skip to content

Commit 398ae69

Browse files
committed
Update gutter when firstLineNumber option is changed
1 parent 942d68f commit 398ae69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ var CodeMirror = (function() {
119119
focus: function(){focusInput(); onFocus(); fastPoll();},
120120
setOption: function(option, value) {
121121
options[option] = value;
122-
if (option == "lineNumbers" || option == "gutter") gutterChanged();
122+
if (option == "lineNumbers" || option == "gutter" || option == "firstLineNumber") gutterChanged();
123123
else if (option == "mode" || option == "indentUnit") loadMode();
124124
else if (option == "readOnly" && value == "nocursor") input.blur();
125125
else if (option == "theme") scroller.className = scroller.className.replace(/cm-s-\w+/, "cm-s-" + value);

0 commit comments

Comments
 (0)