This commit is contained in:
Jan Edmund Lazo
2019-05-26 21:45:46 -04:00
parent b2a11515b2
commit 3c3b7844b9
5 changed files with 35 additions and 40 deletions

View File

@@ -6410,14 +6410,11 @@ int showmode(void)
&& ((State & TERM_FOCUS)
|| (State & INSERT)
|| restart_edit
|| VIsual_active
));
|| VIsual_active));
if (do_mode || reg_recording != 0) {
/*
* Don't show mode right now, when not redrawing or inside a mapping.
* Call char_avail() only when we are going to show something, because
* it takes a bit of time.
*/
// Don't show mode right now, when not redrawing or inside a mapping.
// Call char_avail() only when we are going to show something, because
// it takes a bit of time.
if (!redrawing() || (char_avail() && !KeyTyped) || msg_silent != 0) {
redraw_cmdline = TRUE; /* show mode later */
return 0;
@@ -6534,7 +6531,7 @@ int showmode(void)
need_clear = TRUE;
}
if (reg_recording != 0
&& edit_submode == NULL /* otherwise it gets too long */
&& edit_submode == NULL // otherwise it gets too long
) {
recording_mode(attr);
need_clear = true;