diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-05-24 07:37:36 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-05-24 07:37:36 +0200 |
commit | 3074137542961ce7b3b65c14ebde75f13f5e6147 (patch) | |
tree | 12cad0d7a73be217e53beac7b89e20896ba732e7 /src/testdir/test_substitute.vim | |
parent | 22ac941208fcb2c63ad172c6cf0b39b077b5b682 (diff) |
patch 9.1.0438: Wrong Ex command executed when :g uses '?' as delimiterv9.1.0438
Problem: Wrong Ex command executed when :g uses '?' as delimiter and
pattern contains escaped '?'.
Solution: Don't use "*newp" when it's not allocated (zeertzjq).
closes: #14837
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir/test_substitute.vim')
-rw-r--r-- | src/testdir/test_substitute.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_substitute.vim b/src/testdir/test_substitute.vim index a2367cd233..afdc104d7c 100644 --- a/src/testdir/test_substitute.vim +++ b/src/testdir/test_substitute.vim @@ -174,8 +174,8 @@ func Test_substitute_repeat() bwipe! endfunc -" Test :s with ? as separator. -func Test_substitute_question_separator() +" Test :s with ? as delimiter. +func Test_substitute_question_delimiter() new call setline(1, '??:??') %s?\?\??!!?g |