Skip to content

Commit 1652d58

Browse files
committed
Fix typo in mode state restoring
1 parent 553ffcf commit 1652d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/line/highlight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Context {
3333

3434
static fromSaved(doc, saved, line) {
3535
if (saved instanceof SavedContext)
36-
return new Context(doc, copyState(doc.mode, saved.saved), line, saved.lookAhead)
36+
return new Context(doc, copyState(doc.mode, saved.state), line, saved.lookAhead)
3737
else
3838
return new Context(doc, copyState(doc.mode, saved), line)
3939
}

0 commit comments

Comments
 (0)