From 7c670f1e6a0e154f0b1a2d4b6eed0e71c9404b56 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sat, 3 Jul 1999 13:16:46 +0000 Subject: zsh-3.1.5-pws-25 --- Src/Zle/zle_word.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'Src/Zle/zle_word.c') diff --git a/Src/Zle/zle_word.c b/Src/Zle/zle_word.c index e768cbefa..31f83a2df 100644 --- a/Src/Zle/zle_word.c +++ b/Src/Zle/zle_word.c @@ -300,10 +300,8 @@ vibackwardkillword(char **args) int x = cs, lim = (viinsbegin > findbol()) ? viinsbegin : findbol(); int n = zmult; - if (n < 0) { - feep(); + if (n < 0) return 1; - } /* this taken from "vibackwardword" */ while (n--) { while ((x > lim) && iblank(line[x - 1])) @@ -479,22 +477,16 @@ transposewords(char **args) x = cs; while (x && line[x - 1] != '\n' && !iword(line[x])) x--; - if (!x || line[x - 1] == '\n') { - feep(); + if (!x || line[x - 1] == '\n') return 1; - } } for (p4 = x; p4 != ll && iword(line[p4]); p4++); for (p3 = p4; p3 && iword(line[p3 - 1]); p3--); - if (!p3) { - feep(); + if (!p3) return 1; - } for (p2 = p3; p2 && !iword(line[p2 - 1]); p2--); - if (!p2) { - feep(); + if (!p2) return 1; - } for (p1 = p2; p1 && iword(line[p1 - 1]); p1--); pp = temp = (char *)zhalloc(p4 - p1 + 1); struncpy(&pp, (char *) line + p3, p4 - p3); -- cgit 1.4.1