0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.2133: Cannot detect overstrike mode in Cmdline mode

Problem:  Cannot detect overstrike mode in Cmdline mode
Solution: Make mode() return "cr" for overstrike

closes: #13569

Signed-off-by: Sam-programs <None>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Sam-programs
2023-11-27 22:22:51 +01:00
committed by Christian Brabandt
parent 5c23343770
commit d1c3ef1f47
7 changed files with 51 additions and 2 deletions

View File

@@ -2050,6 +2050,9 @@ getcmdline_int(
#ifdef CURSOR_SHAPE
ui_cursor_shape(); // may show different cursor shape
#endif
may_trigger_modechanged();
status_redraw_curbuf();
redraw_statuslines();
goto cmdline_not_changed;
case Ctrl_HAT:
@@ -3169,8 +3172,6 @@ redraw:
return (char_u *)line_ga.ga_data;
}
# if defined(MCH_CURSOR_SHAPE) || defined(FEAT_GUI) \
|| defined(FEAT_MOUSESHAPE) || defined(PROTO)
/*
* Return TRUE if ccline.overstrike is on.
*/
@@ -3180,6 +3181,8 @@ cmdline_overstrike(void)
return ccline.overstrike;
}
# if defined(MCH_CURSOR_SHAPE) || defined(FEAT_GUI) \
|| defined(FEAT_MOUSESHAPE) || defined(PROTO)
/*
* Return TRUE if the cursor is at the end of the cmdline.
*/