Skip to content

Commit eedd97a

Browse files
peterflynnmarijnh
authored andcommitted
Fix CodeMirror bug #2620 (One pixel wide selection appears on empty line) -
Lost negation operator when converting to new IE flags in bbefd22.
1 parent 9a843ee commit eedd97a

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
@@ -7277,7 +7277,7 @@
72777277
var test = elt("span", "\u200b");
72787278
removeChildrenAndAdd(measure, elt("span", [test, document.createTextNode("x")]));
72797279
if (measure.firstChild.offsetHeight != 0)
7280-
zwspSupported = test.offsetWidth <= 1 && test.offsetHeight > 2 && (ie && ie_version < 8);
7280+
zwspSupported = test.offsetWidth <= 1 && test.offsetHeight > 2 && !(ie && ie_version < 8);
72817281
}
72827282
if (zwspSupported) return elt("span", "\u200b");
72837283
else return elt("span", "\u00a0", null, "display: inline-block; width: 1px; margin-right: -1px");

0 commit comments

Comments
 (0)