fix(messages): clear 'showmode' message after insert_expand #33607

Problem:  'showmode' ext_messages state is not cleared after insert_expand mode.
Solution: Replace empty message with more idiomatic way to clear the showmode.
This commit is contained in:
luukvbaal
2025-04-24 21:11:49 +02:00
committed by GitHub
parent 18e8839c80
commit 276860b538
3 changed files with 19 additions and 3 deletions

View File

@@ -3458,7 +3458,7 @@ static bool ins_esc(int *count, int cmdchar, bool nomove)
showmode();
} else if (p_smd && (got_int || !skip_showmode())
&& !(p_ch == 0 && !ui_has(kUIMessages))) {
msg("", 0);
unshowmode(false);
}
// Exit Insert mode
return true;