diff options
-rw-r--r-- | src/nvim/testdir/test_cursorline.vim | 6 | ||||
-rw-r--r-- | test/functional/options/cursorbind_spec.lua | 13 |
2 files changed, 18 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') diff --git a/test/functional/options/cursorbind_spec.lua b/test/functional/options/cursorbind_spec.lua index 3e8545a065..f762808dd6 100644 --- a/test/functional/options/cursorbind_spec.lua +++ b/test/functional/options/cursorbind_spec.lua @@ -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) |