We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08ec7c2 commit b4112c6Copy full SHA for b4112c6
src/line/spans.js
@@ -31,7 +31,7 @@ export function removeMarkedSpan(spans, span) {
31
// Add a span to a line.
32
export function addMarkedSpan(line, span, op) {
33
let inThisOp = op && window.WeakSet && (op.markedSpans || (op.markedSpans = new WeakSet))
34
- if (inThisOp && inThisOp.has(line.markedSpans)) {
+ if (inThisOp && line.markedSpans && inThisOp.has(line.markedSpans)) {
35
line.markedSpans.push(span)
36
} else {
37
line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span]
0 commit comments