diff options
| author | Aufar Gilbran <aufargilbran@gmail.com> | 2020-08-19 00:54:41 +0800 |
|---|---|---|
| committer | Aufar Gilbran <aufargilbran@gmail.com> | 2020-09-11 10:33:20 +0800 |
| commit | c0102c140cb6d0e2be37c583d34f8ecdf7228f3a (patch) | |
| tree | 03fe59a940fd81cb3a6c46a6835d999a0f83a7bc /src/nvim/testdir | |
| parent | 68f6abef1697d6879b76b515b1b2f67fa59dad1a (diff) | |
| download | rneovim-c0102c140cb6d0e2be37c583d34f8ecdf7228f3a.tar.gz rneovim-c0102c140cb6d0e2be37c583d34f8ecdf7228f3a.tar.bz2 rneovim-c0102c140cb6d0e2be37c583d34f8ecdf7228f3a.zip | |
vim-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)
https://github.com/vim/vim/commit/167ae42685dcd430800c51ac7339f7f0938a3e70
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_search.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_search.vim b/src/nvim/testdir/test_search.vim index 5f421aad3c..9c7b654e06 100644 --- a/src/nvim/testdir/test_search.vim +++ b/src/nvim/testdir/test_search.vim @@ -392,6 +392,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 |