Skip to content

Commit f0b3906

Browse files
committed
updated for version 7.3.1219
Problem: No test for using []] inside \%[]. Solution: Add a test.
1 parent 9460338 commit f0b3906

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/testdir/test64.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ STARTTEST
367367
:call add(tl, [2, '\%[bar]x', 'bxx', 'bx'])
368368
:call add(tl, [2, '\%[bar]x', 'xxx', 'x'])
369369
:call add(tl, [2, 'b\%[[ao]r]', 'bar bor', 'bar'])
370+
:call add(tl, [2, 'b\%[[]]r]', 'b]r bor', 'b]r'])
370371
:"
371372
:"""" Alternatives, must use first longest match
372373
:call add(tl, [2, 'goo\|go', 'google', 'goo'])

src/testdir/test64.ok

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,9 @@ OK 2 - \%[bar]x
839839
OK 0 - b\%[[ao]r]
840840
OK 1 - b\%[[ao]r]
841841
OK 2 - b\%[[ao]r]
842+
OK 0 - b\%[[]]r]
843+
OK 1 - b\%[[]]r]
844+
OK 2 - b\%[[]]r]
842845
OK 0 - goo\|go
843846
OK 1 - goo\|go
844847
OK 2 - goo\|go

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ static char *(features[]) =
728728

729729
static int included_patches[] =
730730
{ /* Add new patch number below this line */
731+
/**/
732+
1219,
731733
/**/
732734
1218,
733735
/**/

0 commit comments

Comments
 (0)