about summary refs log tree commit diff
path: root/Src/input.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-01-31 14:44:06 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-01-31 14:44:06 +0000
commit5d11abfa3bf4f3a133f654c730cde752939376a1 (patch)
tree25df99e59450c832a708cb3ca9b46df546f466e7 /Src/input.c
parentb1dadd97d34d5e7b4cde3626887bf3f0099ef4ce (diff)
downloadzsh-5d11abfa3bf4f3a133f654c730cde752939376a1.tar.gz
zsh-5d11abfa3bf4f3a133f654c730cde752939376a1.tar.xz
zsh-5d11abfa3bf4f3a133f654c730cde752939376a1.zip
16492: add RPROMPT2 variable for right prompts in multi-line commands
Diffstat (limited to 'Src/input.c')
-rw-r--r--Src/input.c5
1 files changed, 4 insertions, 1 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)