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_highlight.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_highlight.vim')
| -rw-r--r-- | src/nvim/testdir/test_highlight.vim | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim index aa7b3a225b..6387ec62af 100644 --- a/src/nvim/testdir/test_highlight.vim +++ b/src/nvim/testdir/test_highlight.vim @@ -597,6 +597,31 @@ func Test_cursorline_with_visualmode() call delete('Xtest_cursorline_with_visualmode') endfunc +func Test_cursorcolumn_callback() + CheckScreendump + CheckFeature timers + + let lines =<< trim END + call setline(1, ['aaaaa', 'bbbbb', 'ccccc', 'ddddd']) + set cursorcolumn + call cursor(4, 5) + + func Func(timer) + call cursor(1, 1) + endfunc + + call timer_start(300, 'Func') + END + call writefile(lines, 'Xcuc_timer') + + let buf = RunVimInTerminal('-S Xcuc_timer', #{rows: 8}) + call TermWait(buf, 310) + call VerifyScreenDump(buf, 'Test_cursorcolumn_callback_1', {}) + + call StopVimInTerminal(buf) + call delete('Xcuc_timer') +endfunc + func Test_colorcolumn() CheckScreendump |