]> granicus.if.org Git - vim/commitdiff
patch 8.2.3472: other crashes with empty search pattern not tested v8.2.3472
authorBram Moolenaar <Bram@vim.org>
Mon, 4 Oct 2021 19:09:19 +0000 (20:09 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 4 Oct 2021 19:09:19 +0000 (20:09 +0100)
Problem:    Other crashes with empty search pattern not tested.
Solution:   Add a few more test lines. (Dominique PellĂ©)

src/testdir/test_search.vim
src/version.c

index bc2b3ad7bf4e3b8e220d6394ab95d189530b9691..bb4e45defa65d3831b76ccef159501361bb29124 100644 (file)
@@ -1982,8 +1982,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
 
 
index b540523b494b05c8b9c830e08bda184102e2c86e..7d348c4757ad2f66b0ad29ebcac2d21ecf710375 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3472,
 /**/
     3471,
 /**/