Respect default prompt

A prompt `"? "` is set in `rl_initialize`, but it is never seen, because
this line was replacing it with `NILSTR`.
This commit is contained in:
Feoramund 2024-05-26 04:09:47 -04:00
parent 425584840c
commit e0f686506a
No known key found for this signature in database
GPG Key ID: 37476133154AE9D7

View File

@ -1435,7 +1435,8 @@ static int el_prep(const char *prompt)
if (!Screen)
return -1;
rl_prompt = prompt ? prompt : NILSTR;
if (prompt)
rl_prompt = prompt;
prompt_len = strlen(rl_prompt);
if (el_no_echo) {