Skip to content

Commit 8040a71

Browse files
committed
patch 8.2.0305: relativenumber test fails on some systems
Problem: Relativenumber test fails on some systems. (James McCoy) Solution: Clear the command line.
1 parent 95ffd43 commit 8040a71

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/testdir/dumps/Test_relnr_colors_2.dump

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
| +0#ff404010&@1|2| |1+0#0000000&@1|2| @42
88
| +0#ff404010&@1|3| |1+0#0000000&@1|3| @42
99
| +0#ff404010&@1|4| |1+0#0000000&@1|4| @42
10-
|:|h|i| |L|i|n|e|N|r|A|b|o|v|e| |c|t|e|r|m|f|g|=|b|l|u|e| @3|1@2|,|1| @8|5@1|%|
10+
|:| @30|1@2|,|1| @8|5@1|%|

src/testdir/dumps/Test_relnr_colors_3.dump

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
| +0#40ff4011&@1|2| |1+0#0000000&@1|2| @42
88
| +0#40ff4011&@1|3| |1+0#0000000&@1|3| @42
99
| +0#40ff4011&@1|4| |1+0#0000000&@1|4| @42
10-
|:|h|i| |L|i|n|e|N|r|B|e|l|o|w| |c|t|e|r|m|f|g|=|g|r|e@1|n| @2|1@2|,|1| @8|5@1|%|
10+
|:| @30|1@2|,|1| @8|5@1|%|

src/testdir/test_number.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ func Test_relativenumber_colors()
284284
" Default colors
285285
call VerifyScreenDump(buf, 'Test_relnr_colors_1', {})
286286

287-
call term_sendkeys(buf, ":hi LineNrAbove ctermfg=blue\<CR>")
287+
call term_sendkeys(buf, ":hi LineNrAbove ctermfg=blue\<CR>:\<CR>")
288288
call VerifyScreenDump(buf, 'Test_relnr_colors_2', {})
289289

290-
call term_sendkeys(buf, ":hi LineNrBelow ctermfg=green\<CR>")
290+
call term_sendkeys(buf, ":hi LineNrBelow ctermfg=green\<CR>:\<CR>")
291291
call VerifyScreenDump(buf, 'Test_relnr_colors_3', {})
292292

293293
call term_sendkeys(buf, ":hi clear LineNrAbove\<CR>")

src/version.c

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

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
305,
741743
/**/
742744
304,
743745
/**/

0 commit comments

Comments
 (0)