diff src/testdir/test_search.vim @ 14534:8fa7f5ff2649 v8.1.0280

patch 8.1.0280: 'incsearch' highlighting does not work for ":g!/" commit https://github.com/vim/vim/commit/def7b1dc6104a6ce6d7c3e3a615231178601b124 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 13 22:54:35 2018 +0200 patch 8.1.0280: 'incsearch' highlighting does not work for ":g!/" Problem: 'incsearch' highlighting does not work for ":g!/". Solution: Skip the exclamation mark. (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Mon, 13 Aug 2018 23:00:05 +0200
parents 58cc47fae12e
children 213f1a519378
line wrap: on
line diff
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -399,6 +399,14 @@ func Test_search_cmdline3g()
   undo
   call feedkeys(":global/the\<c-l>/d\<cr>", 'tx')
   call assert_equal('  3 the theother', getline(2))
+  undo
+  call feedkeys(":g!/the\<c-l>/d\<cr>", 'tx')
+  call assert_equal(1, line('$'))
+  call assert_equal('  2 the~e', getline(1))
+  undo
+  call feedkeys(":global!/the\<c-l>/d\<cr>", 'tx')
+  call assert_equal(1, line('$'))
+  call assert_equal('  2 the~e', getline(1))
 
   call Incsearch_cleanup()
 endfunc