changeset 25876:b4d009c477a4 v8.2.3472

patch 8.2.3472: other crashes with empty search pattern not tested Commit: https://github.com/vim/vim/commit/9af9fd6ab637ea507dd9015fa5a84a408c36c1e0 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 4 20:09:19 2021 +0100 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?)
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Oct 2021 21:15:04 +0200
parents 402f7f310a2d
children 7c24d8fdd652
files src/testdir/test_search.vim src/version.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -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
 
 
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3472,
+/**/
     3471,
 /**/
     3470,