diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-11-21 17:13:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-11-21 17:13:00 +0100 |
commit | 438ee5bf603f3cee2c8ec924d081885c0086ba19 (patch) | |
tree | d39bb63d5cbe3a7b73563977647e07f91e36afeb /src/testdir/test64.in | |
parent | 272fb5823627e2e088b8f39ea516fc8a9341572e (diff) |
updated for version 7.4.101v7.4.101
Problem: Using \1 in pattern goes one line too far. (Bohr Shaw, John Little)
Solution: Only advance the match end for the matched characters in the last
line.
Diffstat (limited to 'src/testdir/test64.in')
-rw-r--r-- | src/testdir/test64.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test64.in b/src/testdir/test64.in index 77949c5141..29bf0b902b 100644 --- a/src/testdir/test64.in +++ b/src/testdir/test64.in @@ -507,6 +507,8 @@ STARTTEST :" Check a pattern with a line break and ^ and $ :call add(tl, [2, 'a\n^b$\n^c', ['a', 'b', 'c'], ['XX']]) :" +:call add(tl, [2, '\(^.\+\n\)\1', [' dog', ' dog', 'asdf'], ['XXasdf']]) +:" :"""" Run the multi-line tests :" :$put ='multi-line tests' |