From 1652d585f958e4959e72da6f12beba994cf072ca Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke <marijn@haverbeke.nl> Date: Thu, 29 Jun 2017 14:58:01 +0200 Subject: [PATCH] Fix typo in mode state restoring --- src/line/highlight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/line/highlight.js b/src/line/highlight.js index e835aa041..430d86a22 100644 --- a/src/line/highlight.js +++ b/src/line/highlight.js @@ -33,7 +33,7 @@ class Context { static fromSaved(doc, saved, line) { if (saved instanceof SavedContext) - return new Context(doc, copyState(doc.mode, saved.saved), line, saved.lookAhead) + return new Context(doc, copyState(doc.mode, saved.state), line, saved.lookAhead) else return new Context(doc, copyState(doc.mode, saved), line) } -- GitLab