diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-16 21:04:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-16 21:04:41 +0200 |
commit | f5a39447a8ebe162ee62caa2ee502cd0e65eecaa (patch) | |
tree | 064c1f2d4afb08fbbe22db09348cbe09c1bdacce /src/testdir/test_regexp_latin.vim | |
parent | 13d216d30224f12ed5bfed71216a80715b32aeff (diff) | |
download | vim-f5a39447a8ebe162ee62caa2ee502cd0e65eecaa.zip |
patch 7.4.2219
Problem: Recursive call to substitute gets stuck in sandbox. (Nikolai
Pavlov)
Solution: Handle the recursive call. (Christian Brabandt, closes #950)
Add a test.
Diffstat (limited to 'src/testdir/test_regexp_latin.vim')
-rw-r--r-- | src/testdir/test_regexp_latin.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_regexp_latin.vim b/src/testdir/test_regexp_latin.vim index 852841280..ea3b2e739 100644 --- a/src/testdir/test_regexp_latin.vim +++ b/src/testdir/test_regexp_latin.vim @@ -30,3 +30,12 @@ func Test_equivalence_re2() set re=2 call s:equivalence_test() endfunc + +func Test_recursive_substitute() + new + s/^/\=execute("s#^##gn") + " check we are now not in the sandbox + call setwinvar(1, 'myvar', 1) + bwipe! +endfunc + |