Problem: Delayed screen update when using undo from Insert mode.
Solution: Update w_topline and cursor shape before sleeping. (closes #5790)
kmsg = keep_msg;
keep_msg = NULL;
- // showmode() will clear keep_msg, but we want to use it anyway
+ // Showmode() will clear keep_msg, but we want to use it anyway.
+ // First update w_topline.
+ setcursor();
update_screen(0);
// now reset it, otherwise it's put in the history again
keep_msg = kmsg;
}
}
setcursor();
+#ifdef CURSOR_SHAPE
+ ui_cursor_shape(); // may show different cursor shape
+#endif
cursor_on();
out_flush();
if (msg_scroll || emsg_on_display)
#endif
/*
- * Check if highlighting for visual mode is possible, give a warning message
+ * Check if highlighting for Visual mode is possible, give a warning message
* if not.
*/
void
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 397,
/**/
396,
/**/