From 5717f510422f52d59f40d8939097b97f8fd95b65 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Tue, 18 Apr 2023 09:14:39 +0100 Subject: [PATCH] Merge pull request #12643 from overleaf/ae-initial-active-line-highlight [cm6] Fix initial active line highlight GitOrigin-RevId: 54de6a176e826ed7d7f1016ba6cee7a8803f0be4 --- .../features/source-editor/extensions/highlight-active-line.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/source-editor/extensions/highlight-active-line.ts b/services/web/frontend/js/features/source-editor/extensions/highlight-active-line.ts index 2566d57c76..af0e7df064 100644 --- a/services/web/frontend/js/features/source-editor/extensions/highlight-active-line.ts +++ b/services/web/frontend/js/features/source-editor/extensions/highlight-active-line.ts @@ -40,7 +40,7 @@ const singleLineHighlighter = ViewPlugin.fromClass( } update(update: ViewUpdate) { - if (update.docChanged || update.selectionSet) { + if (update.geometryChanged || update.selectionSet) { this.decorations = this.getDeco(update.view) } }