fix(ui): check for cmdline mode properly (#35202)

This commit is contained in:
zeertzjq
2025-08-07 12:22:01 +08:00
committed by GitHub
parent c47a69c1a6
commit 5f9f706462
8 changed files with 31 additions and 12 deletions

View File

@@ -3069,7 +3069,7 @@ void repeat_message(void)
if (State == MODE_ASKMORE) {
msg_moremsg(true); // display --more-- message again
msg_row = Rows - 1;
} else if (State == MODE_CMDLINE && confirm_msg != NULL) {
} else if ((State & MODE_CMDLINE) && confirm_msg != NULL) {
display_confirm_msg(); // display ":confirm" message again
msg_row = Rows - 1;
} else if (State == MODE_EXTERNCMD) {