Skip to content

Commit 920ecc1

Browse files
committed
Fix ignoring of overlay styles in getTokenTypeAt
1 parent 850671f commit 920ecc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/edit/methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default function(CodeMirror) {
136136
else if (styles[mid * 2 + 1] < ch) before = mid + 1
137137
else { type = styles[mid * 2 + 2]; break }
138138
}
139-
let cut = type ? type.indexOf("cm-overlay ") : -1
139+
let cut = type ? type.indexOf("overlay ") : -1
140140
return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)
141141
},
142142

0 commit comments

Comments
 (0)