diff options
Diffstat (limited to 'lib/readline/readline.c')
-rw-r--r-- | lib/readline/readline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/readline/readline.c b/lib/readline/readline.c index 5e9767a..5eaaf47 100644 --- a/lib/readline/readline.c +++ b/lib/readline/readline.c @@ -282,6 +282,7 @@ rl_set_prompt (prompt) { FREE (rl_prompt); rl_prompt = prompt ? savestring (prompt) : (char *)NULL; + rl_display_prompt = rl_prompt ? rl_prompt : ""; rl_visible_prompt_length = rl_expand_prompt (rl_prompt); return 0; @@ -714,7 +715,7 @@ _rl_dispatch_subseq (key, map, got_subseq) rl_dispatching = 1; RL_SETSTATE(RL_STATE_DISPATCHING); - r = (*map[key].function)(rl_numeric_arg * rl_arg_sign, key); + (*map[key].function)(rl_numeric_arg * rl_arg_sign, key); RL_UNSETSTATE(RL_STATE_DISPATCHING); rl_dispatching = 0; |