mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
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)
f4fcedc59d
Cherry-pick related changes from patches 8.2.{0433,0866}.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user