about summary refs log tree commit diff
path: root/Src/input.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-12-15 22:45:27 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-12-15 22:45:27 +0000
commit6eb5f99f1e71e8ea89057c2843f3e8273a0d2fdd (patch)
tree1b1a681b89fe613b3405da6ee630bbb86d15b17f /Src/input.c
parentff1feb920f80f58581a79dc6256cc25364b8fe7d (diff)
downloadzsh-6eb5f99f1e71e8ea89057c2843f3e8273a0d2fdd.tar.gz
zsh-6eb5f99f1e71e8ea89057c2843f3e8273a0d2fdd.tar.xz
zsh-6eb5f99f1e71e8ea89057c2843f3e8273a0d2fdd.zip
19295: $CONTEXT zle parameter
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 3867474b8..c07583781 100644
--- a/Src/input.c
+++ b/Src/input.c
@@ -223,6 +223,7 @@ static int
 inputline(void)
 {
     char *ingetcline, *ingetcpmptl = NULL, *ingetcpmptr = NULL;
+    int context = ZLCON_LINE_START;
 
     /* If reading code interactively, work out the prompts. */
     if (interact && isset(SHINSTDIN)) {
@@ -230,6 +231,7 @@ inputline(void)
 	    ingetcpmptl = prompt2;
 	    if (rprompt2)
 		ingetcpmptr = rprompt2;
+	    context = ZLCON_LINE_CONT;
 	}
 	else {
 	    ingetcpmptl = prompt;
@@ -272,7 +274,8 @@ inputline(void)
 	int flags = ZLRF_HISTORY|ZLRF_NOSETTY;
 	if (isset(IGNOREEOF))
 	    flags |= ZLRF_IGNOREEOF;
-	ingetcline = (char *)zleread(ingetcpmptl, ingetcpmptr, flags);
+	ingetcline = (char *)zleread(ingetcpmptl, ingetcpmptr, flags,
+				     context);
 	histdone |= HISTFLAG_SETTY;
     }
     if (!ingetcline) {