Skip to content

Commit

Permalink
patch 8.2.4801: fix for cursorbind fix not fully tested
Browse files Browse the repository at this point in the history
Problem:    Fix for cursorbind fix not fully tested.
Solution:   Add another test case. (Christian Brabandt, closes vim#10240)
  • Loading branch information
chrisbra authored and brammool committed Apr 20, 2022
1 parent d0eaf67 commit 3fd7480
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/testdir/dumps/Test_hor_scroll_5.dump
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
|k+0&#ffffff0@1| |l@1| |m@1| |n@1| |o@1| |p@1| |q@1||+1&&|a+0&&@1| |b@1| |c@1| |d@1| |e@1| |f@1| |g@1| |h@1| |i@1| |j@1| |k@1| |l@1| |m@1| |n>n| |o@1| |p@1| |q@1| |r@1|
@20||+1&&| +0&&@53
@20||+1&&| +0&&@53
@20||+1&&| +0&&@53
@20||+1&&| +0&&@53
|~+0#4040ff13&| @18||+1#0000000&|~+0#4040ff13&| @52
|<+1#0000000&|a|m|e|]| |[|+|]| |1|,|4|1| @2|A|l@1| |[+3&&|N|o| |N|a|m|e|]| |[|+|]| @22|1|,|4|1| @10|A|l@1
|:+0&&|w|i|n|d|o| |:|s|e|t| |n|o|c|u|r|s|o|r|l|i|n|e| |n|o|c|u|r|s|o|r|c|o|l|u|m|n| @35
6 changes: 5 additions & 1 deletion src/testdir/test_cursorline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func Test_cursorline_cursorbind_horizontal_scroll()
CheckScreendump

let lines =<< trim END
call setline(1, 'aa bb cc dd ee ff gg hh ii jj kk ll mm' ..
call setline(1, 'aa bb cc dd ee ff gg hh ii jj kk ll mm' ..
\ ' nn oo pp qq rr ss tt uu vv ww xx yy zz')
set nowrap
" The following makes the cursor apparent on the screen dump
Expand All @@ -320,6 +320,10 @@ func Test_cursorline_cursorbind_horizontal_scroll()
call VerifyScreenDump(buf, 'Test_hor_scroll_3', {})
call term_sendkeys(buf, "10l")
call VerifyScreenDump(buf, 'Test_hor_scroll_4', {})
call term_sendkeys(buf, ":windo :set nocursorline nocursorcolumn\<cr>")
call term_sendkeys(buf, "0")
call term_sendkeys(buf, "40l")
call VerifyScreenDump(buf, 'Test_hor_scroll_5', {})

call StopVimInTerminal(buf)
call delete('Xhor_scroll')
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4801,
/**/
4800,
/**/
Expand Down

0 comments on commit 3fd7480

Please sign in to comment.