From b8fbd749a9d814f227c26d02f17f805435856677 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 1 Apr 2022 17:12:09 +0800 Subject: vim-patch:8.2.3472: other crashes with empty search pattern not tested MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/nvim/testdir/test_search.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/testdir/test_search.vim b/src/nvim/testdir/test_search.vim index f88017388a..040267c136 100644 --- 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("//\", 'xt') + call feedkeys("//\", 'xt') + call feedkeys("??\", 'xt') + call feedkeys("??\", 'xt') endfunc -- cgit