From 629e4e70538ecf433d135be2eaa330e87cf4734c Mon Sep 17 00:00:00 2001 From: Alex Plate <aleksei.plate@jetbrains.com> Date: Mon, 11 Mar 2024 18:49:38 +0200 Subject: [PATCH] Fix(VIM-3336): Improve the performance of `n` in large files The git history shows that the force update of the search highlights was accidentally enabled during the refactorings --- .../kotlin/com/maddyhome/idea/vim/api/VimSearchGroupBase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/api/VimSearchGroupBase.kt b/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/api/VimSearchGroupBase.kt index a923c1857..c92630d4b 100644 --- a/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/api/VimSearchGroupBase.kt +++ b/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/api/VimSearchGroupBase.kt @@ -418,7 +418,7 @@ public abstract class VimSearchGroupBase : VimSearchGroup { dir: Direction, ): Int { resetSearchHighlight() - updateSearchHighlights(true) + updateSearchHighlights(false) val startOffset: Int = caret.offset.point var offset = findItOffset(editor, startOffset, count, dir)