VimL/confirm(): Show dialog even if :silent

closes #8788
related #9034
This commit is contained in:
Justin M. Keyes
2018-12-01 02:41:31 +01:00
parent feec926633
commit 0f00f31cbd
4 changed files with 58 additions and 10 deletions

View File

@@ -2825,7 +2825,6 @@ do_dialog (
Ex command */
)
{
int oldState;
int retval = 0;
char_u *hotkeys;
int c;
@@ -2838,7 +2837,10 @@ do_dialog (
}
oldState = State;
int save_msg_silent = msg_silent;
int oldState = State;
msg_silent = 0; // If dialog prompts for input, user needs to see it! #8788
State = CONFIRM;
setmouse();
@@ -2891,6 +2893,7 @@ do_dialog (
xfree(hotkeys);
msg_silent = save_msg_silent;
State = oldState;
setmouse();
--no_wait_return;