diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-08-15 18:38:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-15 18:38:46 +0800 |
| commit | d33424983312806fb683eaa6bd720fe418c1299e (patch) | |
| tree | 1b45b1ba5c3fa4ed66dc74dce66acfa27e761524 /src/nvim/testdir/test_normal.vim | |
| parent | 9a3877ff9d4db15189b171b4a487d57768abf0a9 (diff) | |
| parent | 55da52963b6e13ecc402b6574cf3bd396d11d23d (diff) | |
| download | rneovim-d33424983312806fb683eaa6bd720fe418c1299e.tar.gz rneovim-d33424983312806fb683eaa6bd720fe418c1299e.tar.bz2 rneovim-d33424983312806fb683eaa6bd720fe418c1299e.zip | |
Merge pull request #19098 from zeertzjq/vim-8.1.0822
vim-patch:8.1.{partial:0822,1189,1192},8.2.5109: 'showmode' fixes
Diffstat (limited to 'src/nvim/testdir/test_normal.vim')
| -rw-r--r-- | src/nvim/testdir/test_normal.vim | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim index 7cb70aa2af..523b9b8781 100644 --- a/src/nvim/testdir/test_normal.vim +++ b/src/nvim/testdir/test_normal.vim @@ -3,6 +3,7 @@ source shared.vim source check.vim source view_util.vim +source screendump.vim func Setup_NewWindow() 10new @@ -2038,9 +2039,9 @@ func Test_normal33_g_cmd2() call assert_equal(2, line('.')) call assert_fails(':norm! g;', 'E662') call assert_fails(':norm! g,', 'E663') - let &ul=&ul + let &ul = &ul call append('$', ['a', 'b', 'c', 'd']) - let &ul=&ul + let &ul = &ul call append('$', ['Z', 'Y', 'X', 'W']) let a = execute(':changes') call assert_match('2\s\+0\s\+2', a) @@ -2889,6 +2890,20 @@ func Test_message_when_using_ctrl_c() bwipe! endfunc +func Test_mode_updated_after_ctrl_c() + CheckScreendump + + let buf = RunVimInTerminal('', {'rows': 5}) + call term_sendkeys(buf, "i") + call term_sendkeys(buf, "\<C-O>") + " wait a moment so that the "-- (insert) --" message is displayed + call TermWait(buf, 50) + call term_sendkeys(buf, "\<C-C>") + call VerifyScreenDump(buf, 'Test_mode_updated_1', {}) + + call StopVimInTerminal(buf) +endfunc + " Test for '[m', ']m', '[M' and ']M' " Jumping to beginning and end of methods in Java-like languages func Test_java_motion() |