diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-06-26 15:54:00 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-15 17:58:35 +0800 |
commit | 55da52963b6e13ecc402b6574cf3bd396d11d23d (patch) | |
tree | 1b45b1ba5c3fa4ed66dc74dce66acfa27e761524 /test/functional/legacy/messages_spec.lua | |
parent | 93ba82183122b6b6e3d388d0e0fad4a538052803 (diff) | |
download | rneovim-55da52963b6e13ecc402b6574cf3bd396d11d23d.tar.gz rneovim-55da52963b6e13ecc402b6574cf3bd396d11d23d.tar.bz2 rneovim-55da52963b6e13ecc402b6574cf3bd396d11d23d.zip |
vim-patch:8.2.5109: mode not updated after CTRL-O CTRL-C in Insert mode
Problem: Mode not updated after CTRL-O CTRL-C in Insert mode.
Solution: Set redraw_mode and use it. (closes vim/vim#10581)
https://github.com/vim/vim/commit/7a1d32809bb5c1527314000983e75125d79192e0
Diffstat (limited to 'test/functional/legacy/messages_spec.lua')
-rw-r--r-- | test/functional/legacy/messages_spec.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/legacy/messages_spec.lua b/test/functional/legacy/messages_spec.lua index 41f3007b81..159cf7a551 100644 --- a/test/functional/legacy/messages_spec.lua +++ b/test/functional/legacy/messages_spec.lua @@ -402,6 +402,28 @@ describe('messages', function() | ]]) end) + + -- oldtest: Test_mode_updated_after_ctrl_c() + it('pressing Ctrl-C in i_CTRL-O', function() + feed('i<C-O>') + screen:expect([[ + ^ | + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + {2:-- (insert) --} | + ]]) + feed('<C-C>') + screen:expect([[ + ^ | + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + | + ]]) + end) end) -- oldtest: Test_ask_yesno() |