Mercurial > vim
diff src/testdir/test_cursorline.vim @ 28554:6481ccc776f9 v8.2.4801
patch 8.2.4801: fix for cursorbind fix not fully tested
Commit: https://github.com/vim/vim/commit/3fd7480cd25f1e939fc2362e0644d497bcc81b71
Author: Christian Brabandt <cb@256bit.org>
Date: Wed Apr 20 22:07:41 2022 +0100
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 https://github.com/vim/vim/issues/10240)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 20 Apr 2022 23:15:02 +0200 |
parents | 22345596a270 |
children | d0241e74bfdb |
line wrap: on
line diff
--- a/src/testdir/test_cursorline.vim +++ b/src/testdir/test_cursorline.vim @@ -297,7 +297,7 @@ func Test_cursorline_cursorbind_horizont 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 @@ -320,6 +320,10 @@ func Test_cursorline_cursorbind_horizont 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')