From 640a840d2e94f0fc245ef8632050c37af23c6b94 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:21:49 +0000 Subject: zsh-3.1.5-pws-13 --- Src/utils.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Src/utils.c') diff --git a/Src/utils.c b/Src/utils.c index d010df4e0..3f8177271 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -52,8 +52,11 @@ char *scriptname; void zerr(const char *fmt, const char *str, int num) { - if (errflag || noerrs) + if (errflag || noerrs) { + if (noerrs < 2) + errflag = 1; return; + } errflag = 1; trashzle(); /* @@ -1306,7 +1309,7 @@ spckword(char **s, int hist, int cmd, int ask) return; guess = dupstring(guess); ne = noerrs; - noerrs = 1; + noerrs = 2; singsub(&guess); noerrs = ne; if (!guess) -- cgit 1.4.1