aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_regexp_utf8.vim
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-08-16 16:07:15 -0400
committerJames McCoy <jamessan@jamessan.com>2016-08-20 23:55:11 -0400
commitc7e6b58012cc5cad8f1cb02876883cad7fcbbdeb (patch)
tree338ebfb5ff87d343384eb08bc70e8b12d28e764e /src/nvim/testdir/test_regexp_utf8.vim
parent35ddcc5bb484d461e6381d9ddbdf0438446f1299 (diff)
downloadrneovim-c7e6b58012cc5cad8f1cb02876883cad7fcbbdeb.tar.gz
rneovim-c7e6b58012cc5cad8f1cb02876883cad7fcbbdeb.tar.bz2
rneovim-c7e6b58012cc5cad8f1cb02876883cad7fcbbdeb.zip
vim-patch:7.4.2219
Problem: Recursive call to substitute gets stuck in sandbox. (Nikolai Pavlov) Solution: Handle the recursive call. (Christian Brabandt, closes vim/vim#950) Add a test. https://github.com/vim/vim/commit/f5a39447a8ebe162ee62caa2ee502cd0e65eecaa Closes #5118
Diffstat (limited to 'src/nvim/testdir/test_regexp_utf8.vim')
-rw-r--r--src/nvim/testdir/test_regexp_utf8.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_regexp_utf8.vim b/src/nvim/testdir/test_regexp_utf8.vim
index e1b1c2a9fb..38f9ed41d5 100644
--- a/src/nvim/testdir/test_regexp_utf8.vim
+++ b/src/nvim/testdir/test_regexp_utf8.vim
@@ -31,3 +31,11 @@ func Test_equivalence_re2()
call s:equivalence_test()
set re=0
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