Reset wait period for COM_BufInsertText
This commit is contained in:
1 parent
2eb175c356
commit
8ffeab1646
1 file changed
+6
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user