Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lactozilla
SRB2
Commits
ba4b6ec4
Commit
ba4b6ec4
authored
4 years ago
by
James R.
Browse files
Options
Downloads
Patches
Plain Diff
Reset wait period for COM_BufInsertText
parent
1cd73315
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/command.c
+6
-0
6 additions, 0 deletions
src/command.c
with
6 additions
and
0 deletions
src/command.c
+
6
−
0
View file @
ba4b6ec4
...
@@ -165,6 +165,8 @@ void COM_BufAddTextEx(const char *ptext, int flags)
...
@@ -165,6 +165,8 @@ void COM_BufAddTextEx(const char *ptext, int flags)
*/
*/
void
COM_BufInsertTextEx
(
const
char
*
ptext
,
int
flags
)
void
COM_BufInsertTextEx
(
const
char
*
ptext
,
int
flags
)
{
{
const
INT32
old_wait
=
com_wait
;
char
*
temp
=
NULL
;
char
*
temp
=
NULL
;
size_t
templen
;
size_t
templen
;
...
@@ -176,10 +178,14 @@ void COM_BufInsertTextEx(const char *ptext, int flags)
...
@@ -176,10 +178,14 @@ void COM_BufInsertTextEx(const char *ptext, int flags)
VS_Clear
(
&
com_text
);
VS_Clear
(
&
com_text
);
}
}
com_wait
=
0
;
// add the entire text of the file (or alias)
// add the entire text of the file (or alias)
COM_BufAddTextEx
(
ptext
,
flags
);
COM_BufAddTextEx
(
ptext
,
flags
);
COM_BufExecute
();
// do it right away
COM_BufExecute
();
// do it right away
com_wait
+=
old_wait
;
// add the copied off data
// add the copied off data
if
(
templen
)
if
(
templen
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment