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".

ea683da58c
This commit is contained in:
Shougo
2017-06-19 08:13:32 +09:00
committed by Justin M. Keyes
parent 3a86dd54f3
commit 694eb18e03
4 changed files with 17 additions and 5 deletions

View File

@@ -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 \

View File

@@ -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