From b09922bb063ddf44c7850b182fec4795fbe1ae90 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sun, 27 Jun 1999 06:54:32 +0000 Subject: zsh-3.1.5-pws-23 --- Src/Zle/zle_utils.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'Src/Zle/zle_utils.c') diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index bd2f39a06..cc9c9bf37 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -409,11 +409,19 @@ showmsg(char const *msg) /* handle the error flag */ /**/ -int -handlefeep(char **args) +void +feep(void) { - zbeep(); - return 0; + feepflag = 1; +} + +/**/ +void +handlefeep(void) +{ + if(feepflag) + zbeep(); + feepflag = 0; } /***************/ @@ -551,8 +559,10 @@ undo(char **args) { handleundo(); do { - if(!curchange->prev) + if(!curchange->prev) { + feep(); return 1; + } unapplychange(curchange = curchange->prev); } while(curchange->flags & CH_PREV); setlastline(); @@ -588,8 +598,10 @@ redo(char **args) { handleundo(); do { - if(!curchange->next) + if(!curchange->next) { + feep(); return 1; + } applychange(curchange); curchange = curchange->next; } while(curchange->prev->flags & CH_NEXT); -- cgit 1.4.1