Skip to content

Commit 30585e0

Browse files
zeertzjqbrammool
authored andcommitted
patch 9.0.1386: options test fails with some window width
Problem: Options test fails with some window width. Solution: Adjust what text the test checks with. (closes #12111)
1 parent f86dea8 commit 30585e0

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/testdir/test_normal.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2526,8 +2526,11 @@ func Test_normal33_g_cmd2()
25262526
norm! g'a
25272527
call assert_equal('>', a[-1:])
25282528
call assert_equal(1, line('.'))
2529+
let v:errmsg = ''
25292530
call assert_nobeep("normal! g`\<Esc>")
2531+
call assert_equal('', v:errmsg)
25302532
call assert_nobeep("normal! g'\<Esc>")
2533+
call assert_equal('', v:errmsg)
25312534

25322535
" Test for g; and g,
25332536
norm! g;

src/testdir/test_options.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,8 +1058,9 @@ func Test_debug_option()
10581058
exe "normal \<C-c>"
10591059
call assert_equal('Beep!', Screenline(&lines))
10601060
call assert_equal('line 4:', Screenline(&lines - 1))
1061-
" only match the final colon in the line that shows the source
1062-
call assert_match(':$', Screenline(&lines - 2))
1061+
" also check a line above, with a certain window width the colon is there
1062+
call assert_match('Test_debug_option:$',
1063+
\ Screenline(&lines - 3) .. Screenline(&lines - 2))
10631064
set debug&
10641065
endfunc
10651066

src/version.c

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

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1386,
698700
/**/
699701
1385,
700702
/**/

0 commit comments

Comments
 (0)