summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-12-11 08:09:30 +0100
committerBardur Arantsson <bardur@scientician.net>2015-12-11 08:09:30 +0100
commit425fce8a89685cb72f97cd173e5724ea3f85398e (patch)
tree3afdfa83b0963df7c515598278ea15a530b50672 /src/util.cc
parent84908853d4d30b7709f0e70efb59f8c2d094dc1d (diff)
Reduce scope of askfor_aux_complete variable to single file
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc
index 44853967..f2ed1f6c 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -2403,7 +2403,8 @@ static int complete_command(char *buf, int clen, int mlen)
* ESCAPE clears the buffer and the window and returns FALSE.
* RETURN accepts the current buffer contents and returns TRUE.
*/
-bool_ askfor_aux_complete = FALSE;
+static bool_ askfor_aux_complete = FALSE;
+
bool_ askfor_aux(char *buf, int len)
{
int y, x;
@@ -2519,6 +2520,13 @@ bool_ askfor_aux(char *buf, int len)
return (TRUE);
}
+bool_ askfor_aux_with_completion(char *buf, int len)
+{
+ askfor_aux_complete = TRUE;
+ bool_ res = askfor_aux(buf, len);
+ askfor_aux_complete = FALSE;
+ return res;
+}
/*
* Get a string from the user