Skip to content

Commit 3a39379

Browse files
dpellebrammool
authored andcommitted
patch 9.0.0053: E1281 not tested with the old regexp engine
Problem: E1281 not tested with the old regexp engine. Solution: Loop over the values of 'regexp'. (Dominique Pellé, closes #10695)
1 parent 2ebcc35 commit 3a39379

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/testdir/test_regexp_latin.vim

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,13 +1101,17 @@ func Test_using_two_engines_pattern()
11011101
call setline(1, ['foobar=0', 'foobar=1', 'foobar=2'])
11021102
" \%#= at the end of the pattern
11031103
for i in range(0, 2)
1104-
call cursor( (i+1), 7)
1105-
call assert_fails("%s/foobar\\%#=" .. i, 'E1281:')
1104+
for j in range(0, 2)
1105+
exe "set re=" .. i
1106+
call cursor(j + 1, 7)
1107+
call assert_fails("%s/foobar\\%#=" .. j, 'E1281:')
1108+
endfor
11061109
endfor
1110+
set re=0
11071111

11081112
" \%#= at the start of the pattern
11091113
for i in range(0, 2)
1110-
call cursor( (i+1), 7)
1114+
call cursor(i + 1, 7)
11111115
exe ":%s/\\%#=" .. i .. "foobar=" .. i .. "/xx"
11121116
endfor
11131117
call assert_equal(['xx', 'xx', 'xx'], getline(1, '$'))

src/version.c

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

736736
static int included_patches[] =
737737
{ /* Add new patch number below this line */
738+
/**/
739+
53,
738740
/**/
739741
52,
740742
/**/

0 commit comments

Comments
 (0)