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>
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 8f0be52..52f4feb 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -2050,6 +2050,9 @@
#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 @@
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 @@
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.
*/