Procházet zdrojové kódy

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

[cm6] Fix initial active line highlight

GitOrigin-RevId: 54de6a176e826ed7d7f1016ba6cee7a8803f0be4
Alf Eaton před 3 roky
rodič
revize
5717f51042

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