diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-03-24 20:28:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-24 20:28:46 +0800 |
| commit | 3b28bd57f9131a71b17265d18d5e0a7a8cedb84b (patch) | |
| tree | b98f3fa9fb4a16fe681ea7e28b4bfd69cb4532bc /src/nvim/testdir | |
| parent | 1194856b3167f4a37e7d0b985053112a44f61288 (diff) | |
| parent | c29a14d1fa58d5472bd14fec99c5b4228ed38b24 (diff) | |
| download | rneovim-3b28bd57f9131a71b17265d18d5e0a7a8cedb84b.tar.gz rneovim-3b28bd57f9131a71b17265d18d5e0a7a8cedb84b.tar.bz2 rneovim-3b28bd57f9131a71b17265d18d5e0a7a8cedb84b.zip | |
Merge pull request #17821 from zeertzjq/vim-patch-cursorline
vim-patch:8.2.{4591,4614}: cursorline redrawing
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_cursorline.vim | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cursorline.vim b/src/nvim/testdir/test_cursorline.vim index 39d8b901ed..bf049ec779 100644 --- a/src/nvim/testdir/test_cursorline.vim +++ b/src/nvim/testdir/test_cursorline.vim @@ -268,4 +268,30 @@ END call delete('Xtextfile') endfunc +func Test_cursorline_callback() + CheckScreendump + CheckFeature timers + + let lines =<< trim END + call setline(1, ['aaaaa', 'bbbbb', 'ccccc', 'ddddd']) + set cursorline + call cursor(4, 1) + + func Func(timer) + call cursor(2, 1) + endfunc + + call timer_start(300, 'Func') + END + call writefile(lines, 'Xcul_timer') + + let buf = RunVimInTerminal('-S Xcul_timer', #{rows: 8}) + call TermWait(buf, 310) + call VerifyScreenDump(buf, 'Test_cursorline_callback_1', {}) + + call StopVimInTerminal(buf) + call delete('Xcul_timer') +endfunc + + " vim: shiftwidth=2 sts=2 expandtab |