From 4c149a8abc198d38008c9f5b4eeb80a9c73a0722 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 17 Feb 2003 14:06:39 +0000 Subject: 18252: pass ignoreeof as flag to zleread --- Src/input.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Src/input.c') diff --git a/Src/input.c b/Src/input.c index a95dac52c..e712ad19a 100644 --- a/Src/input.c +++ b/Src/input.c @@ -269,8 +269,10 @@ inputline(void) * typeahead when the terminal settings are altered. * pws 1998/03/12 */ - ingetcline = (char *)zleread(ingetcpmptl, ingetcpmptr, - ZLRF_HISTORY|ZLRF_NOSETTY); + int flags = ZLRF_HISTORY|ZLRF_NOSETTY; + if (isset(IGNOREEOF)) + flags |= ZLRF_IGNOREEOF; + ingetcline = (char *)zleread(ingetcpmptl, ingetcpmptr, flags); histdone |= HISTFLAG_SETTY; } if (!ingetcline) { -- cgit v1.2.3