aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorShougo <Shougo.Matsu@gmail.com>2017-06-19 08:13:32 +0900
committerJustin M. Keyes <justinkz@gmail.com>2017-06-19 01:13:32 +0200
commit694eb18e03a6a73321aafc19aa2f28104bdf3b8b (patch)
treeefa225da5994010f0e9a74801cb295fdc5581931 /src/nvim/testdir
parent3a86dd54f3875d158d059dd08a1513b6957d6216 (diff)
downloadrneovim-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')
-rw-r--r--src/nvim/testdir/Makefile1
-rw-r--r--src/nvim/testdir/test_search.vim12
2 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/Makefile b/src/nvim/testdir/Makefile
index 3482001f63..7e55fffa06 100644
--- a/src/nvim/testdir/Makefile
+++ b/src/nvim/testdir/Makefile
@@ -58,6 +58,7 @@ NEW_TESTS ?= \
test_nested_function.res \
test_normal.res \
test_quickfix.res \
+ test_search.res \
test_signs.res \
test_smartindent.res \
test_stat.res \
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