about summary refs log tree commit diff
path: root/Src/Zle/zle_main.c
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2019-12-17 04:43:48 +0000
committerDaniel Shahaf <danielsh@apache.org>2019-12-17 05:12:36 +0000
commit8bc4400762289e5cdbcfa50aab5982f8e7e28dfc (patch)
tree7fc5f89ac89b1ec686da40e409723436d3a167f7 /Src/Zle/zle_main.c
parent2cb15a23f8a61adf11634d1ee6a9eeca57e68b30 (diff)
downloadzsh-8bc4400762289e5cdbcfa50aab5982f8e7e28dfc.tar.gz
zsh-8bc4400762289e5cdbcfa50aab5982f8e7e28dfc.tar.xz
zsh-8bc4400762289e5cdbcfa50aab5982f8e7e28dfc.zip
45058: internal: Add symbolic names to possible values of zexit()'s "from_where" parameter. No functional change.
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r--Src/Zle/zle_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 27dc8ef21..22cb21be3 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -905,7 +905,7 @@ getbyte(long do_keytmout, int *timeout, int full)
 		if ((zlereadflags & ZLRF_IGNOREEOF) && icnt++ < 20)
 		    continue;
 		stopmsg = 1;
-		zexit(1, 0);
+		zexit(1, ZEXIT_NORMAL);
 	    }
 	    icnt = 0;
 	    if (errno == EINTR) {
@@ -928,7 +928,7 @@ getbyte(long do_keytmout, int *timeout, int full)
 	    } else if (errno != 0) {
 		zerr("error on TTY read: %e", errno);
 		stopmsg = 1;
-		zexit(1, 0);
+		zexit(1, ZEXIT_NORMAL);
 	    }
 	}
 	if (cc == '\r')		/* undo the exchange of \n and \r determined by */