summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c
index e9ff714..835d233 100644
--- a/src/input.c
+++ b/src/input.c
@@ -128,8 +128,9 @@ read_key (KeySym *keysym, unsigned int *modifiers)
}
char *
-get_input (screen_info *s, char *prompt)
+get_input (char *prompt)
{
+ screen_info *s = current_screen ();
int cur_len; /* Current length of the string. */
int allocated_len=100; /* The ammount of memory we allocated for str */
KeySym ch;
@@ -140,6 +141,7 @@ get_input (screen_info *s, char *prompt)
int width = 200 + prompt_width;
char *str;
+
/* We don't want to draw overtop of the program bar. */
hide_bar (s);