Skip to content

Commit 2b6d796

Browse files
committed
Fix removing of spans
1 parent b3c1c79 commit 2b6d796

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
@@ -2372,7 +2372,7 @@ window.CodeMirror = (function() {
23722372
function removeMarkedSpan(spans, span) {
23732373
var r;
23742374
for (var i = 0; i < spans.length; ++i)
2375-
if (spans[i] == span) (r || (r = [])).push(spans[i]);
2375+
if (spans[i] != span) (r || (r = [])).push(spans[i]);
23762376
return r;
23772377
}
23782378

0 commit comments

Comments
 (0)