mirror of
https://github.com/troglobit/editline.git
synced 2025-05-05 20:11:12 +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:
parent
425584840c
commit
e0f686506a
@ -1435,7 +1435,8 @@ static int el_prep(const char *prompt)
|
|||||||
if (!Screen)
|
if (!Screen)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
rl_prompt = prompt ? prompt : NILSTR;
|
if (prompt)
|
||||||
|
rl_prompt = prompt;
|
||||||
prompt_len = strlen(rl_prompt);
|
prompt_len = strlen(rl_prompt);
|
||||||
|
|
||||||
if (el_no_echo) {
|
if (el_no_echo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user