mirror of
https://github.com/troglobit/editline.git
synced 2025-09-24 15:58:08 +08:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user