aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-11-28 11:46:20 +0800
committerGitHub <noreply@github.com>2023-11-28 11:46:20 +0800
commite6d38c7dac2e079d9b0f1621fef193bca858664f (patch)
treed585eff109bbf28495e55bed109261c5577a1d59 /src/nvim/ex_getln.c
parent1a8f60c7d2699826b51f23b040b83b1d96a14930 (diff)
downloadrneovim-e6d38c7dac2e079d9b0f1621fef193bca858664f.tar.gz
rneovim-e6d38c7dac2e079d9b0f1621fef193bca858664f.tar.bz2
rneovim-e6d38c7dac2e079d9b0f1621fef193bca858664f.zip
vim-patch:9.0.2133: Cannot detect overstrike mode in Cmdline mode (#26263)
Problem: Cannot detect overstrike mode in Cmdline mode Solution: Make mode() return "cr" for overstrike closes: vim/vim#13569 https://github.com/vim/vim/commit/d1c3ef1f47c87d1da056c56564e1985fe6f2931d
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index f302f44dad..37af6b6a44 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -1835,8 +1835,10 @@ static int command_line_handle_key(CommandLineState *s)
case K_INS:
case K_KINS:
ccline.overstrike = !ccline.overstrike;
-
ui_cursor_shape(); // may show different cursor shape
+ may_trigger_modechanged();
+ status_redraw_curbuf();
+ redraw_statuslines();
return command_line_not_changed(s);
case Ctrl_HAT: