Skip to content

Commit 43749f8

Browse files
paulmassonmarijnh
authored andcommitted
Minor rebase to remove Arabic textnode
1 parent 51a1e7d commit 43749f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/codemirror.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8558,8 +8558,9 @@
85588558
if (badBidiRects != null) return badBidiRects;
85598559
var txt = removeChildrenAndAdd(measure, document.createTextNode("A\u062eA"));
85608560
var r0 = range(txt, 0, 1).getBoundingClientRect();
8561-
if (!r0 || r0.left == r0.right) return false; // Safari returns null in some cases (#2780)
85628561
var r1 = range(txt, 1, 2).getBoundingClientRect();
8562+
removeChildren(measure);
8563+
if (!r0 || r0.left == r0.right) return false; // Safari returns null in some cases (#2780)
85638564
return badBidiRects = (r1.right - r0.right < 3);
85648565
}
85658566

0 commit comments

Comments
 (0)