vim-patch:8.2.4801: fix for cursorbind fix not fully tested

Problem:    Fix for cursorbind fix not fully tested.
Solution:   Add another test case. (Christian Brabandt, closes vim/vim#10240)
3fd7480cd2
This commit is contained in:
zeertzjq 2022-04-21 06:08:50 +08:00
parent 4c5a2e8ebf
commit 94f12e8a59
2 changed files with 18 additions and 1 deletions

View File

@ -341,6 +341,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')

View File

@ -74,5 +74,18 @@ describe("'cursorbind'", function()
{3:[No Name] [+] }{2:[No Name] [+] }|
|
]])
command('windo :set nocursorline nocursorcolumn')
feed('0')
feed('40l')
screen:expect([[
kk ll mm nn oo pp qq{3:} bb cc dd ee ff gg hh ii jj kk ll mm n^n|
{3:} |
{3:} |
{3:} |
{3:} |
{1:~ }{3:}{1:~ }|
{3:[No Name] [+] }{2:[No Name] [+] }|
|
]])
end)
end)