Skip to content

Commit

Permalink
patch 9.0.0100: get hit-enter prompt for system() when '!' is in 'gui…
Browse files Browse the repository at this point in the history
…options'

Problem:    Get hit-enter prompt for system() when '!' is in 'guioptions'.
Solution:   Do not call wait_return() when not redrawing. (closes #3327)
  • Loading branch information
brammool committed Jul 28, 2022
1 parent 46af7bc commit cb5ed4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/os_unix.c
Expand Up @@ -4522,7 +4522,10 @@ mch_call_shell_terminal(
// restore curwin/curbuf and a few other things
aucmd_restbuf(&aco);

wait_return(TRUE);
// only require pressing Enter when redrawing, to avoid that system() gets
// the hit-enter prompt even though it didn't output anything.
if (!RedrawingDisabled)
wait_return(TRUE);
do_buffer(DOBUF_WIPE, DOBUF_FIRST, FORWARD, buf->b_fnum, TRUE);

theend:
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -735,6 +735,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
100,
/**/
99,
/**/
Expand Down

0 comments on commit cb5ed4d

Please sign in to comment.