Skip to content

Commit b108788

Browse files
committed
Add word break tests to regexp in previous patch
1 parent 2b9b089 commit b108788

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

lib/codemirror.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
}
6969
.cm-animate-fat-cursor {
7070
width: auto;
71-
border: 0;
7271
-webkit-animation: blink 1.06s steps(1) infinite;
7372
-moz-animation: blink 1.06s steps(1) infinite;
7473
animation: blink 1.06s steps(1) infinite;

src/display/selection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function drawSelectionCursor(cm, head, output) {
3737
cursor.style.top = pos.top + "px"
3838
cursor.style.height = Math.max(0, pos.bottom - pos.top) * cm.options.cursorHeight + "px"
3939

40-
if (/cm-fat-cursor/.test(cm.getWrapperElement().className)) {
40+
if (/\bcm-fat-cursor\b/.test(cm.getWrapperElement().className)) {
4141
let charPos = charCoords(cm, head, "div", null, null);
4242
cursor.style.width = Math.max(0, charPos.right - charPos.left) + "px";
4343
}

0 commit comments

Comments
 (0)