diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-16 21:39:05 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-16 21:55:27 +0800 |
commit | 780edfc0eb1293f5813d904ad61fc65bbbb41784 (patch) | |
tree | 7bb4d31d5cd799d8158360722eb6cb989ff14633 /test/functional/legacy/messages_spec.lua | |
parent | bc73795a5858129a84d510f682c9dcb17aa1813a (diff) | |
download | rneovim-780edfc0eb1293f5813d904ad61fc65bbbb41784.tar.gz rneovim-780edfc0eb1293f5813d904ad61fc65bbbb41784.tar.bz2 rneovim-780edfc0eb1293f5813d904ad61fc65bbbb41784.zip |
vim-patch:8.2.2608: character input not fully tested
Problem: Character input not fully tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#7963)
https://github.com/vim/vim/commit/f4fcedc59d4cc5ae6b5270a933e8377030283c1c
Cherry-pick related changes from patches 8.2.{0433,0866}.
Diffstat (limited to 'test/functional/legacy/messages_spec.lua')
-rw-r--r-- | test/functional/legacy/messages_spec.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/functional/legacy/messages_spec.lua b/test/functional/legacy/messages_spec.lua index 2b0e6941ef..b296ac909d 100644 --- a/test/functional/legacy/messages_spec.lua +++ b/test/functional/legacy/messages_spec.lua @@ -261,6 +261,35 @@ describe('messages', function() ^100 | | ]]) + + -- Execute a : command from the more prompt + feed(':%p#\n') + screen:expect([[ + {2: 1 }1 | + {2: 2 }2 | + {2: 3 }3 | + {2: 4 }4 | + {2: 5 }5 | + {1:-- More --}^ | + ]]) + feed(':') + screen:expect([[ + {2: 1 }1 | + {2: 2 }2 | + {2: 3 }3 | + {2: 4 }4 | + {2: 5 }5 | + :^ | + ]]) + feed("echo 'Hello'\n") + screen:expect([[ + {2: 2 }2 | + {2: 3 }3 | + {2: 4 }4 | + {2: 5 }5 | + Hello | + {1:Press ENTER or type command to continue}^ | + ]]) end) -- oldtest: Test_quit_long_message() |