mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
add cmdline mode to modechange of RPC and tests
use set_cursor_shape_bar for cmdline mode fix test of screen_basic_spec.lua & screen.lua comment fix
This commit is contained in:
@@ -642,5 +642,52 @@ describe('Screen', function()
|
||||
eq("normal", screen.mode)
|
||||
end)
|
||||
end)
|
||||
|
||||
it('works in cmdline mode', function()
|
||||
feed(':')
|
||||
screen:expect([[
|
||||
|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
:^ |
|
||||
]],nil,nil,function ()
|
||||
eq("cmdline", screen.mode)
|
||||
end)
|
||||
|
||||
feed('<esc>/')
|
||||
screen:expect([[
|
||||
|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
/^ |
|
||||
]],nil,nil,function ()
|
||||
eq("cmdline", screen.mode)
|
||||
end)
|
||||
|
||||
|
||||
feed('<esc>?')
|
||||
screen:expect([[
|
||||
|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
?^ |
|
||||
]],nil,nil,function ()
|
||||
eq("cmdline", screen.mode)
|
||||
end)
|
||||
|
||||
feed('<esc>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
|
|
||||
]],nil,nil,function ()
|
||||
eq("normal", screen.mode)
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user