From 8ffeab1646bbe32ce2f0291f9aafddbd730ccb66 Mon Sep 17 00:00:00 2001 From: James R Date: Wed, 21 Oct 2020 12:34:26 -0700 Subject: [PATCH] Reset wait period for COM_BufInsertText --- src/command.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/command.c b/src/command.c index 93d99f4ef..9996635e9 100644 --- a/src/command.c +++ b/src/command.c @@ -134,6 +134,8 @@ void COM_BufAddText(const char *ptext) */ void COM_BufInsertText(const char *ptext) { + const INT32 old_wait = com_wait; + char *temp = NULL; size_t templen; @@ -145,10 +147,14 @@ void COM_BufInsertText(const char *ptext) VS_Clear(&com_text); } + com_wait = 0; + // add the entire text of the file (or alias) COM_BufAddText(ptext); COM_BufExecute(); // do it right away + com_wait += old_wait; + // add the copied off data if (templen) {