comparison src/os_unix.c @ 29517:a762488a5d08 v9.0.0100

patch 9.0.0100: get hit-enter prompt for system() when '!' is in 'guioptions' Commit: https://github.com/vim/vim/commit/cb5ed4d6252a7c76c2f85ae95cb1e4e2bccc41fc Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 28 12:54:08 2022 +0100 patch 9.0.0100: get hit-enter prompt for system() when '!' is in 'guioptions' Problem: Get hit-enter prompt for system() when '!' is in 'guioptions'. Solution: Do not call wait_return() when not redrawing. (closes https://github.com/vim/vim/issues/3327)
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Jul 2022 14:00:03 +0200
parents 8175cd4c8fdd
children 89e1d67814a9
comparison
equal deleted inserted replaced
29516:877887b3a205 29517:a762488a5d08
4520 job_unref(job); 4520 job_unref(job);
4521 4521
4522 // restore curwin/curbuf and a few other things 4522 // restore curwin/curbuf and a few other things
4523 aucmd_restbuf(&aco); 4523 aucmd_restbuf(&aco);
4524 4524
4525 wait_return(TRUE); 4525 // only require pressing Enter when redrawing, to avoid that system() gets
4526 // the hit-enter prompt even though it didn't output anything.
4527 if (!RedrawingDisabled)
4528 wait_return(TRUE);
4526 do_buffer(DOBUF_WIPE, DOBUF_FIRST, FORWARD, buf->b_fnum, TRUE); 4529 do_buffer(DOBUF_WIPE, DOBUF_FIRST, FORWARD, buf->b_fnum, TRUE);
4527 4530
4528 theend: 4531 theend:
4529 vim_free(argv); 4532 vim_free(argv);
4530 vim_free(tofree1); 4533 vim_free(tofree1);