neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 8af2aea24f9f33ba2eaa03d548295267bdd02024
parent 17c18efbe561d51ccf7568763e1056fb906f25f3
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Wed, 18 Jun 2025 06:59:05 +0800

Merge pull request #34492 from nenahp/fix-append-cursor

fix: cursor shape don't resume after `:append`
Diffstat:
Msrc/nvim/ex_cmds.c | 1+
Mtest/functional/ui/mode_spec.lua | 5+++++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c @@ -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; diff --git a/test/functional/ui/mode_spec.lua b/test/functional/ui/mode_spec.lua @@ -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()