mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +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;
|
State = MODE_NORMAL;
|
||||||
|
ui_cursor_shape();
|
||||||
|
|
||||||
if (eap->forceit) {
|
if (eap->forceit) {
|
||||||
curbuf->b_p_ai = !curbuf->b_p_ai;
|
curbuf->b_p_ai = !curbuf->b_p_ai;
|
||||||
|
@@ -43,6 +43,11 @@ describe('ui mode_change event', function()
|
|||||||
]],
|
]],
|
||||||
mode = 'normal',
|
mode = 'normal',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
n.feed(':append<cr>')
|
||||||
|
screen:expect({ mode = 'cmdline_normal' })
|
||||||
|
n.feed('<esc>')
|
||||||
|
screen:expect({ mode = 'normal' })
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- oldtest: Test_mouse_shape_after_failed_change()
|
-- oldtest: Test_mouse_shape_after_failed_change()
|
||||||
|
Reference in New Issue
Block a user