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

[cm6] Fix initial active line highlight

GitOrigin-RevId: 54de6a176e826ed7d7f1016ba6cee7a8803f0be4
This commit is contained in:
Alf Eaton 2023-04-18 09:14:39 +01:00 committed by Copybot
parent f205d1f31d
commit 5717f51042

View file

@ -40,7 +40,7 @@ const singleLineHighlighter = ViewPlugin.fromClass(
} }
update(update: ViewUpdate) { update(update: ViewUpdate) {
if (update.docChanged || update.selectionSet) { if (update.geometryChanged || update.selectionSet) {
this.decorations = this.getDeco(update.view) this.decorations = this.getDeco(update.view)
} }
} }