1
0
Fork 0
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:
Oliver Kiddle 2002-01-31 14:44:06 +00:00
parent b1dadd97d3
commit 5d11abfa3b
4 changed files with 23 additions and 3 deletions

View file

@ -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)