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)
diff --git a/src/testdir/test_regexp_latin.vim b/src/testdir/test_regexp_latin.vim
index dce6709..1ba7d17 100644
--- a/src/testdir/test_regexp_latin.vim
+++ b/src/testdir/test_regexp_latin.vim
@@ -1101,13 +1101,17 @@
call setline(1, ['foobar=0', 'foobar=1', 'foobar=2'])
" \%#= at the end of the pattern
for i in range(0, 2)
- call cursor( (i+1), 7)
- call assert_fails("%s/foobar\\%#=" .. i, 'E1281:')
+ for j in range(0, 2)
+ exe "set re=" .. i
+ call cursor(j + 1, 7)
+ call assert_fails("%s/foobar\\%#=" .. j, 'E1281:')
+ endfor
endfor
+ set re=0
" \%#= at the start of the pattern
for i in range(0, 2)
- call cursor( (i+1), 7)
+ call cursor(i + 1, 7)
exe ":%s/\\%#=" .. i .. "foobar=" .. i .. "/xx"
endfor
call assert_equal(['xx', 'xx', 'xx'], getline(1, '$'))
diff --git a/src/version.c b/src/version.c
index 3c4e96c..9e7a988 100644
--- a/src/version.c
+++ b/src/version.c
@@ -736,6 +736,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 53,
+/**/
52,
/**/
51,