1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 16:40:29 +01:00

19295: $CONTEXT zle parameter

This commit is contained in:
Peter Stephenson 2003-12-15 22:45:27 +00:00
parent ff1feb920f
commit 6eb5f99f1e
7 changed files with 76 additions and 10 deletions

View file

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