vim-patch:9.0.0969: matchparen highlight is not updated when switching buffers (#21227)

Problem:    Matchparen highlight is not updated when switching buffers.
Solution:   Listen to the BufLeave and the BufWinEnter autocmd events.
            (closes vim/vim#11626)

28a896f54d

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2022-11-29 10:17:57 +08:00
committed by GitHub
parent 615f124003
commit 65e8ed45de
8 changed files with 96 additions and 24 deletions

View File

@@ -7,6 +7,7 @@ local write_file = helpers.write_file
before_each(clear)
describe(':source!', function()
-- oldtest: Test_nested_script()
it('gives E22 when scripts nested too deep', function()
write_file('Xscript.vim', [[
:source! Xscript.vim