diff options
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -321,17 +321,15 @@ input_rl_set_prompt (void *input, char *prompt) struct input_rl *self = input; cstr_set (&self->prompt, prompt); - if (!self->active) + if (!self->active || self->prompt_shown <= 0) return; // First reset the prompt to work around a bug in readline rl_set_prompt (""); - if (self->prompt_shown > 0) - rl_redisplay (); + rl_redisplay (); rl_set_prompt (self->prompt); - if (self->prompt_shown > 0) - rl_redisplay (); + rl_redisplay (); } static void |