about summary refs log tree commit diff
path: root/Src/Zle/zle_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/zle_utils.c')
-rw-r--r--Src/Zle/zle_utils.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c
index cc9c9bf37..bd2f39a06 100644
--- a/Src/Zle/zle_utils.c
+++ b/Src/Zle/zle_utils.c
@@ -409,19 +409,11 @@ showmsg(char const *msg)
 /* handle the error flag */
 
 /**/
-void
-feep(void)
-{
-    feepflag = 1;
-}
-
-/**/
-void
-handlefeep(void)
+int
+handlefeep(char **args)
 {
-    if(feepflag)
-	zbeep();
-    feepflag = 0;
+    zbeep();
+    return 0;
 }
 
 /***************/
@@ -559,10 +551,8 @@ undo(char **args)
 {
     handleundo();
     do {
-	if(!curchange->prev) {
-	    feep();
+	if(!curchange->prev)
 	    return 1;
-	}
 	unapplychange(curchange = curchange->prev);
     } while(curchange->flags & CH_PREV);
     setlastline();
@@ -598,10 +588,8 @@ redo(char **args)
 {
     handleundo();
     do {
-	if(!curchange->next) {
-	    feep();
+	if(!curchange->next)
 	    return 1;
-	}
 	applychange(curchange);
 	curchange = curchange->next;
     } while(curchange->prev->flags & CH_NEXT);