diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/input.c | 5 | ||||
-rw-r--r-- | Src/params.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/Src/input.c b/Src/input.c index ba01dd068..a95dac52c 100644 --- a/Src/input.c +++ b/Src/input.c @@ -226,8 +226,11 @@ inputline(void) /* If reading code interactively, work out the prompts. */ if (interact && isset(SHINSTDIN)) { - if (!isfirstln) + if (!isfirstln) { ingetcpmptl = prompt2; + if (rprompt2) + ingetcpmptr = rprompt2; + } else { ingetcpmptl = prompt; if (rprompt) diff --git a/Src/params.c b/Src/params.c index 8db358b07..ba4776423 100644 --- a/Src/params.c +++ b/Src/params.c @@ -65,6 +65,7 @@ char *argzero, /* $0 */ *prompt4, /* $PROMPT4 */ *readnullcmd, /* $READNULLCMD */ *rprompt, /* $RPROMPT */ + *rprompt2, /* $RPROMPT2 */ *sprompt, /* $SPROMPT */ *wordchars, /* $WORDCHARS */ *zsh_name; /* $ZSH_NAME */ @@ -193,12 +194,14 @@ IPDEF7("OPTARG", &zoptarg), IPDEF7("NULLCMD", &nullcmd), IPDEF7("POSTEDIT", &postedit), IPDEF7("READNULLCMD", &readnullcmd), -IPDEF7("RPROMPT", &rprompt), IPDEF7("PS1", &prompt), +IPDEF7("RPS1", &rprompt), +IPDEF7("RPROMPT", &rprompt), IPDEF7("PS2", &prompt2), +IPDEF7("RPS2", &rprompt2), +IPDEF7("RPROMPT2", &rprompt2), IPDEF7("PS3", &prompt3), IPDEF7("PS4", &prompt4), -IPDEF7("RPS1", &rprompt), IPDEF7("SPROMPT", &sprompt), IPDEF7("0", &argzero), |