Skip to content

Commit c75344a

Browse files
committed
Always refresh the gutter when a change was made that crosses line bounds
1 parent f01ee93 commit c75344a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/codemirror.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ var CodeMirror = (function() {
547547
doc.iter(from.line, to.line, function(line) {
548548
if (line.text.length == maxLineLength) {recomputeMaxLength = true; return true;}
549549
});
550+
if (from.line != to.line || newText.length > 1) gutterDirty = true;
550551

551552
var nlines = to.line - from.line, firstLine = getLine(from.line), lastLine = getLine(to.line);
552553
// First adjust the line structure, taking some care to leave highlighting intact.

0 commit comments

Comments
 (0)