0
0
mirror of https://github.com/vim/vim.git synced 2025-11-14 23:04:02 -05:00

updated for version 7.4.045

Problem:    substitute() does not work properly when the pattern starts with
            "\ze".
Solution:   Detect an empty match. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2013-09-29 21:11:05 +02:00
parent 8962fda1da
commit ceb84af027
4 changed files with 14 additions and 10 deletions

View File

@@ -142,6 +142,8 @@ STARTTEST
:$put =substitute('C', 'C', 'c', '')
:$put =substitute('D', 'D', '%', '')
/^TEST_7
ENDTEST
TEST_7:
STARTTEST

View File

@@ -103,6 +103,8 @@ TEST_7:
k
l
l
TEST_5:
A123456789987654321