1
0
forked from aniani/vim

patch 8.2.1513: cannot interrupt shell used for filename expansion

Problem:    Cannot interrupt shell used for filename expansion. (Dominique
            Pellé)
Solution:   Do set tmode in mch_delay(). (closes #6770)
This commit is contained in:
Bram Moolenaar
2020-08-23 14:28:37 +02:00
parent 69e44552c5
commit 0981c8729e
12 changed files with 41 additions and 26 deletions

View File

@@ -6739,7 +6739,7 @@ notsgr:
void
mch_delay(
long msec,
int ignoreinput UNUSED)
int flags UNUSED)
{
#if defined(FEAT_GUI_MSWIN) && !defined(VIMDLL)
Sleep((int)msec); // never wait for input
@@ -6751,7 +6751,7 @@ mch_delay(
return;
}
# endif
if (ignoreinput)
if (flags & MCH_DELAY_IGNOREINPUT)
# ifdef FEAT_MZSCHEME
if (mzthreads_allowed() && p_mzq > 0 && msec > p_mzq)
{