mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
vim-patch:9.0.1385: g'Esc is considered an error (#22544)
Problem: g'Esc is considered an error.
Solution: Make g'Esc silently abandon the command. (closes vim/vim#12110)
f86dea8119
This commit is contained in:
@@ -44,7 +44,10 @@ describe('ui mode_change event', function()
|
||||
{0:~ }|
|
||||
|
|
||||
]], mode="normal"}
|
||||
end)
|
||||
|
||||
-- oldtest: Test_mouse_shape_after_failed_change()
|
||||
it('is restored to Normal mode after failed "c"', function()
|
||||
screen:try_resize(50, 4)
|
||||
command('set nomodifiable')
|
||||
|
||||
@@ -65,6 +68,25 @@ describe('ui mode_change event', function()
|
||||
]], mode="normal"}
|
||||
end)
|
||||
|
||||
-- oldtest: Test_mouse_shape_after_cancelling_gr()
|
||||
it('is restored to Normal mode after cancelling "gr"', function()
|
||||
feed('gr')
|
||||
screen:expect{grid=[[
|
||||
^ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
|
|
||||
]], mode="replace"}
|
||||
|
||||
feed('<Esc>')
|
||||
screen:expect{grid=[[
|
||||
^ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
|
|
||||
]], mode="normal"}
|
||||
end)
|
||||
|
||||
it('works in insert mode', function()
|
||||
feed('i')
|
||||
screen:expect{grid=[[
|
||||
|
||||
Reference in New Issue
Block a user