diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-27 06:54:32 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-27 06:54:32 +0000 |
commit | b09922bb063ddf44c7850b182fec4795fbe1ae90 (patch) | |
tree | 8a6dfa5ef6c6012753c0dc5a6e93e6f820b51a58 /Src/Zle/zle_utils.c | |
parent | 346825df86466cf151be61b9429ef2c1734e66ea (diff) | |
download | zsh-b09922bb063ddf44c7850b182fec4795fbe1ae90.tar.gz zsh-b09922bb063ddf44c7850b182fec4795fbe1ae90.tar.xz zsh-b09922bb063ddf44c7850b182fec4795fbe1ae90.zip |
zsh-3.1.5-pws-23 zsh-3.1.5-pws-23
Diffstat (limited to 'Src/Zle/zle_utils.c')
-rw-r--r-- | Src/Zle/zle_utils.c | 24 |
1 files changed, 18 insertions, 6 deletions
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); |