diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-03 08:49:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-03 08:49:39 -0400 |
| commit | abdda664108646a8f1bd3112abb8083d721d38e6 (patch) | |
| tree | 812803dea9448f804c6080b7a50b67b5d7a794c7 /src/nvim/testdir | |
| parent | 6db3ba9df27619703947fee11493354ca3a06878 (diff) | |
| download | rneovim-abdda664108646a8f1bd3112abb8083d721d38e6.tar.gz rneovim-abdda664108646a8f1bd3112abb8083d721d38e6.tar.bz2 rneovim-abdda664108646a8f1bd3112abb8083d721d38e6.zip | |
vim-patch:8.2.2694: when 'matchpairs' is empty every character beeps (#14279)
Problem: When 'matchpairs' is empty every character beeps. (Marco Hinz)
Solution: Bail out when no character in 'matchpairs' was found.
(closes vim/vim#8053) Add assert_nobeep().
https://github.com/vim/vim/commit/5b8cabfef7c3707f3e53e13844d90e5a217e1e84
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_textformat.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_textformat.vim b/src/nvim/testdir/test_textformat.vim index 4af52b536c..29f0433954 100644 --- a/src/nvim/testdir/test_textformat.vim +++ b/src/nvim/testdir/test_textformat.vim @@ -891,6 +891,14 @@ func Test_mps() bwipe! endfunc +func Test_empty_matchpairs() + split + set matchpairs= showmatch + call assert_nobeep('call feedkeys("ax\tx\t\<Esc>", "xt")') + set matchpairs& noshowmatch + bwipe! +endfunc + " Test for ra on multi-byte characters func Test_ra_multibyte() new |