diff options
author | Christian Brabandt <cb@256bit.org> | 2023-11-12 16:55:01 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-11-12 16:55:01 +0100 |
commit | 9588666360e94de3ff58d4bc79aa9148fbf5fc44 (patch) | |
tree | 14e3385567aea2f4572ac79bda8ea670ab78b31b /runtime | |
parent | 2dd613f57bf17eb8ff050bcb5510eb0279f5c9ab (diff) |
patch 9.0.2102: matchparen highlight not cleared in completion modev9.0.2102
Problem: matchparen highlight not cleared in completion mode
Solution: Clear matchparen highlighting in completion mode
Remove hard-coded hack in insexpand.c to clear the :3match before
displaying the completion menu.
Add a test for matchparen highlighting. While at it, move all test tests
related to the matchparen plugin into a separate test file.
closes: #13493
closes: #13524
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/plugin/matchparen.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/plugin/matchparen.vim b/runtime/plugin/matchparen.vim index 9d57545ee8..4235a0d39b 100644 --- a/runtime/plugin/matchparen.vim +++ b/runtime/plugin/matchparen.vim @@ -26,6 +26,7 @@ augroup matchparen autocmd! WinLeave,BufLeave * call s:Remove_Matches() if exists('##TextChanged') autocmd! TextChanged,TextChangedI * call s:Highlight_Matching_Pair() + autocmd! TextChangedP * call s:Remove_Matches() endif augroup END |