diff options
| author | Shougo <Shougo.Matsu@gmail.com> | 2017-06-19 08:13:32 +0900 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2017-06-19 01:13:32 +0200 |
| commit | 694eb18e03a6a73321aafc19aa2f28104bdf3b8b (patch) | |
| tree | efa225da5994010f0e9a74801cb295fdc5581931 /src/nvim/testdir/test_search.vim | |
| parent | 3a86dd54f3875d158d059dd08a1513b6957d6216 (diff) | |
| download | rneovim-694eb18e03a6a73321aafc19aa2f28104bdf3b8b.tar.gz rneovim-694eb18e03a6a73321aafc19aa2f28104bdf3b8b.tar.bz2 rneovim-694eb18e03a6a73321aafc19aa2f28104bdf3b8b.zip | |
vim-patch:7.4.2356 (#6880)
Problem: Reading past end of line when using previous substitute pattern.
(Dominique Pelle)
Solution: Don't set "pat" only set "searchstr".
https://github.com/vim/vim/commit/ea683da58cf9ecf3afab9d650d3d2da76e5298d3
Diffstat (limited to 'src/nvim/testdir/test_search.vim')
| -rw-r--r-- | src/nvim/testdir/test_search.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_search.vim b/src/nvim/testdir/test_search.vim new file mode 100644 index 0000000000..e85525e663 --- /dev/null +++ b/src/nvim/testdir/test_search.vim @@ -0,0 +1,12 @@ +" Test for the search command + +func Test_use_sub_pat() + split + let @/ = '' + func X() + s/^/a/ + / + endfunc + call X() + bwipe! +endfunc |