diff src/testdir/test_search.vim @ 14546:35e7ead872db v8.1.0286

patch 8.1.0286: 'incsearch' does not apply to :smagic and :snomagic commit https://github.com/vim/vim/commit/167ae42685dcd430800c51ac7339f7f0938a3e70 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 14 21:32:21 2018 +0200 patch 8.1.0286: 'incsearch' does not apply to :smagic and :snomagic Problem: 'incsearch' does not apply to :smagic and :snomagic. Solution: Add support. (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Tue, 14 Aug 2018 21:45:04 +0200
parents 116a01c73fd8
children 2bee637a8edc
line wrap: on
line diff
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -384,6 +384,14 @@ func Test_search_cmdline3s()
   undo
   call feedkeys(":%substitute/the\<c-l>/xxx\<cr>", 'tx')
   call assert_equal('  2 xxxe', getline('.'))
+  undo
+  call feedkeys(":%smagic/the.e/xxx\<cr>", 'tx')
+  call assert_equal('  2 xxx', getline('.'))
+  undo
+  call assert_fails(":%snomagic/the.e/xxx\<cr>", 'E486')
+  "
+  call feedkeys(":%snomagic/the\\.e/xxx\<cr>", 'tx')
+  call assert_equal('  2 xxx', getline('.'))
 
   call Incsearch_cleanup()
 endfunc