We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffa4589 commit 0291f72Copy full SHA for 0291f72
lib/codemirror.js
@@ -2312,6 +2312,7 @@
2312
for (var i = 0; i < doc.sel.ranges.length; i++) {
2313
if (primary === false && i == doc.sel.primIndex) continue;
2314
var range = doc.sel.ranges[i];
2315
+ if (range.from().line >= cm.display.viewTo || range.to().line < cm.display.viewFrom) continue;
2316
var collapsed = range.empty();
2317
if (collapsed || cm.options.showCursorWhenSelecting)
2318
drawSelectionCursor(cm, range.head, curFragment);
0 commit comments