mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
fix: cursor shape don't resume after :append
Problem: cursor shape don't resume after `:append`. e.g. `seq 1000 | nvim --clean +"se gcr+=c:ver25" -` Solution: emit missing ui event.
This commit is contained in:
@ -2889,6 +2889,7 @@ void ex_append(exarg_T *eap)
|
||||
}
|
||||
}
|
||||
State = MODE_NORMAL;
|
||||
ui_cursor_shape();
|
||||
|
||||
if (eap->forceit) {
|
||||
curbuf->b_p_ai = !curbuf->b_p_ai;
|
||||
|
@ -43,6 +43,11 @@ describe('ui mode_change event', function()
|
||||
]],
|
||||
mode = 'normal',
|
||||
}
|
||||
|
||||
n.feed(':append<cr>')
|
||||
screen:expect({ mode = 'cmdline_normal' })
|
||||
n.feed('<esc>')
|
||||
screen:expect({ mode = 'normal' })
|
||||
end)
|
||||
|
||||
-- oldtest: Test_mouse_shape_after_failed_change()
|
||||
|
Reference in New Issue
Block a user