commit b8fbd749a9d814f227c26d02f17f805435856677
parent 649a11bc139d109e8a3adc893a9e53ab32cf248c
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 1 Apr 2022 17:12:09 +0800
vim-patch:8.2.3472: other crashes with empty search pattern not tested
Problem: Other crashes with empty search pattern not tested.
Solution: Add a few more test lines. (Dominique Pellé)
https://github.com/vim/vim/commit/9af9fd6ab637ea507dd9015fa5a84a408c36c1e0
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/nvim/testdir/test_search.vim b/src/nvim/testdir/test_search.vim
@@ -1532,8 +1532,11 @@ func Test_no_last_search_pattern()
let @/ = ""
set incsearch
- " this was causing a crash
- call feedkeys("//\x14", 'xt')
+ " these were causing a crash
+ call feedkeys("//\<C-G>", 'xt')
+ call feedkeys("//\<C-T>", 'xt')
+ call feedkeys("??\<C-G>", 'xt')
+ call feedkeys("??\<C-T>", 'xt')
endfunc