Skip to content

Commit 9e7a26a

Browse files
committed
Take line number updates into account when bailing early from updateDisplay
Issue #2638
1 parent 25bcc71 commit 9e7a26a

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
@@ -608,6 +608,7 @@
608608

609609
// Bail out if the visible area is already rendered and nothing changed.
610610
if (!forced && visible.from >= display.viewFrom && visible.to <= display.viewTo &&
611+
(display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo) &&
611612
countDirtyView(cm) == 0)
612613
return;
613614

0 commit comments

Comments
 (0)