commit | ea683da58cf9ecf3afab9d650d3d2da76e5298d3 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Sep 09 21:41:34 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Sep 09 21:41:34 2016 +0200 |
tree | 7e022beea3b46caf8ba23e2b1b290a412eedac1b | |
parent | 16b3578f355282846f2600ce77fb344950f0b9ce [diff] |
patch 7.4.2356 Problem: Reading past end of line when using previous substitute pattern. (Dominique Pelle) Solution: Don't set "pat" only set "searchstr".
diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim index 9c2d610..3b9aff4 100644 --- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim
@@ -268,3 +268,14 @@ call test_disable_char_avail(0) bw! endfunc + +func Test_use_sub_pat() + split + let @/ = '' + func X() + s/^/a/ + / + endfunc + call X() + bwipe! +endfunc