diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-27 00:23:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 00:23:39 +0800 |
commit | efae71819a99b1cf9cce024b520b62bb455229f9 (patch) | |
tree | 606619758ac55c4e28f7d8c52df7b33513bf64a9 /test/old | |
parent | 9f0762f1fec2aa23df592dda70124e3cbdb703b7 (diff) | |
parent | a35bca21125980d407bdb830e7c52d95a629de76 (diff) | |
download | rneovim-efae71819a99b1cf9cce024b520b62bb455229f9.tar.gz rneovim-efae71819a99b1cf9cce024b520b62bb455229f9.tar.bz2 rneovim-efae71819a99b1cf9cce024b520b62bb455229f9.zip |
Merge pull request #23288 from MunifTanjim/issue-22263
fix(normal): fix repeated trigger modechanged for scheduled callback
Diffstat (limited to 'test/old')
-rw-r--r-- | test/old/testdir/test_autocmd.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/old/testdir/test_autocmd.vim b/test/old/testdir/test_autocmd.vim index decfec4763..c44988321f 100644 --- a/test/old/testdir/test_autocmd.vim +++ b/test/old/testdir/test_autocmd.vim @@ -3453,7 +3453,7 @@ endfunc " Test for ModeChanged pattern func Test_mode_changes() let g:index = 0 - let g:mode_seq = ['n', 'i', 'n', 'v', 'V', 'i', 'ix', 'i', 'ic', 'i', 'n', 'no', 'n', 'V', 'v', 's', 'n'] + let g:mode_seq = ['n', 'i', 'n', 'v', 'V', 'i', 'ix', 'i', 'ic', 'i', 'n', 'no', 'noV', 'n', 'V', 'v', 's', 'n'] func! TestMode() call assert_equal(g:mode_seq[g:index], get(v:event, "old_mode")) call assert_equal(g:mode_seq[g:index + 1], get(v:event, "new_mode")) @@ -3464,7 +3464,7 @@ func Test_mode_changes() au ModeChanged * :call TestMode() let g:n_to_any = 0 au ModeChanged n:* let g:n_to_any += 1 - call feedkeys("i\<esc>vVca\<CR>\<C-X>\<C-L>\<esc>ggdG", 'tnix') + call feedkeys("i\<esc>vVca\<CR>\<C-X>\<C-L>\<esc>ggdV\<MouseMove>G", 'tnix') let g:V_to_v = 0 au ModeChanged V:v let g:V_to_v += 1 |