diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-09-29 21:11:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-09-29 21:11:05 +0200 |
commit | ceb84af027ac782f0b9de0e66f321258358e391a (patch) | |
tree | 22f08b3f3763b3f20dbef2b2faef8082e9dcc964 /src/testdir | |
parent | 8962fda1dacf374d78bd02ca487800c2519c57b2 (diff) |
updated for version 7.4.045v7.4.045
Problem: substitute() does not work properly when the pattern starts with
"\ze".
Solution: Detect an empty match. (Christian Brabandt)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test80.in | 2 | ||||
-rw-r--r-- | src/testdir/test80.ok | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test80.in b/src/testdir/test80.in index 7f6ecfccb5..5491a90092 100644 --- a/src/testdir/test80.in +++ b/src/testdir/test80.in @@ -142,6 +142,8 @@ STARTTEST :$put =\"\n\nTEST_7:\" :$put =substitute('A
A', 'A.', '\=submatch(0)', '') :$put =substitute(\"B\nB\", 'B.', '\=submatch(0)', '') +:$put =substitute('-bb', '\zeb', 'a', 'g') +:$put =substitute('-bb', '\ze', 'c', 'g') /^TEST_8 ENDTEST diff --git a/src/testdir/test80.ok b/src/testdir/test80.ok index 45b1d1d0f1..562bbf249c 100644 --- a/src/testdir/test80.ok +++ b/src/testdir/test80.ok @@ -103,6 +103,8 @@ TEST_7: A
A B B +-abab +c-cbcbc TEST_8: |