瀏覽代碼

Merge pull request #12643 from overleaf/ae-initial-active-line-highlight

[cm6] Fix initial active line highlight

GitOrigin-RevId: 54de6a176e826ed7d7f1016ba6cee7a8803f0be4
Alf Eaton 3 年之前
父節點
當前提交
5717f51042
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/web/frontend/js/features/source-editor/extensions/highlight-active-line.ts

+ 1 - 1
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)
       }
     }