Mercurial > vim
comparison src/testdir/test_textformat.vim @ 24307:55f458d35292 v8.2.2694
patch 8.2.2694: when 'matchpairs' is empty every character beeps
Commit: https://github.com/vim/vim/commit/5b8cabfef7c3707f3e53e13844d90e5a217e1e84
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 2 18:55:57 2021 +0200
patch 8.2.2694: when 'matchpairs' is empty every character beeps
Problem: When 'matchpairs' is empty every character beeps. (Marco Hinz)
Solution: Bail out when no character in 'matchpairs' was found.
(closes #8053) Add assert_nobeep().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 02 Apr 2021 19:00:06 +0200 |
parents | 6d3dee0d7de5 |
children | 649d3e9c5914 |
comparison
equal
deleted
inserted
replaced
24306:4a6be7bbbe68 | 24307:55f458d35292 |
---|---|
856 call assert_equal(4, col('.')) | 856 call assert_equal(4, col('.')) |
857 let &encoding = save_enc | 857 let &encoding = save_enc |
858 close! | 858 close! |
859 endfunc | 859 endfunc |
860 | 860 |
861 func Test_empty_matchpairs() | |
862 split | |
863 set matchpairs= showmatch | |
864 call assert_nobeep('call feedkeys("ax\tx\t\<Esc>", "xt")') | |
865 set matchpairs& noshowmatch | |
866 bwipe! | |
867 endfunc | |
868 | |
861 func Test_mps_error() | 869 func Test_mps_error() |
862 let encoding_save = &encoding | 870 let encoding_save = &encoding |
863 | 871 |
864 for e in ['utf-8', 'latin1'] | 872 for e in ['utf-8', 'latin1'] |
865 exe 'set encoding=' .. e | 873 exe 'set encoding=' .. e |