diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-21 06:08:50 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-21 06:10:42 +0800 |
commit | 94f12e8a5947a31a3fca07c8df75ab62fef7b1a3 (patch) | |
tree | 65ce5c681fdc836bd67224165ba634eb842604bb /src | |
parent | 4c5a2e8ebfab9a91fea8f6750354d202ea7ac48a (diff) | |
download | rneovim-94f12e8a5947a31a3fca07c8df75ab62fef7b1a3.tar.gz rneovim-94f12e8a5947a31a3fca07c8df75ab62fef7b1a3.tar.bz2 rneovim-94f12e8a5947a31a3fca07c8df75ab62fef7b1a3.zip |
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)
https://github.com/vim/vim/commit/3fd7480cd25f1e939fc2362e0644d497bcc81b71
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_cursorline.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_cursorline.vim b/src/nvim/testdir/test_cursorline.vim index 45593a2429..e85e9304a3 100644 --- a/src/nvim/testdir/test_cursorline.vim +++ b/src/nvim/testdir/test_cursorline.vim @@ -318,7 +318,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 @@ -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') |