diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-03-28 06:40:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-28 06:40:00 +0800 |
| commit | 79dcd045d3623ff71903e2806be489bd5fe3200d (patch) | |
| tree | 8c8c262404a9888c3acebd48272d0f31840a07a6 /src/nvim/testdir/test_cursorline.vim | |
| parent | a201dd265f3f20be954d8b7ee7f65d3eb6f920f6 (diff) | |
| parent | ab02b28b4e14ecd22facab9377ea71aff2ffdfdb (diff) | |
| download | rneovim-79dcd045d3623ff71903e2806be489bd5fe3200d.tar.gz rneovim-79dcd045d3623ff71903e2806be489bd5fe3200d.tar.bz2 rneovim-79dcd045d3623ff71903e2806be489bd5fe3200d.zip | |
Merge pull request #17889 from zeertzjq/vim-8.2.4638
vim-patch:8.2.{4638,4630}: cursorlineopt=screenline redrawing
Diffstat (limited to 'src/nvim/testdir/test_cursorline.vim')
| -rw-r--r-- | src/nvim/testdir/test_cursorline.vim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cursorline.vim b/src/nvim/testdir/test_cursorline.vim index bf049ec779..7e97df6027 100644 --- a/src/nvim/testdir/test_cursorline.vim +++ b/src/nvim/testdir/test_cursorline.vim @@ -293,5 +293,26 @@ func Test_cursorline_callback() call delete('Xcul_timer') endfunc +func Test_cursorline_screenline_update() + CheckScreendump + + let lines =<< trim END + call setline(1, repeat('xyz ', 30)) + set cursorline cursorlineopt=screenline + inoremap <F2> <Cmd>call cursor(1, 1)<CR> + END + call writefile(lines, 'Xcul_screenline') + + let buf = RunVimInTerminal('-S Xcul_screenline', #{rows: 8}) + call term_sendkeys(buf, "A") + call VerifyScreenDump(buf, 'Test_cursorline_screenline_1', {}) + call term_sendkeys(buf, "\<F2>") + call VerifyScreenDump(buf, 'Test_cursorline_screenline_2', {}) + call term_sendkeys(buf, "\<Esc>") + + call StopVimInTerminal(buf) + call delete('Xcul_screenline') +endfunc + " vim: shiftwidth=2 sts=2 expandtab |