mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
16492: add RPROMPT2 variable for right prompts in multi-line commands
This commit is contained in:
parent
b1dadd97d3
commit
5d11abfa3b
4 changed files with 23 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue