diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mg/bell.c | 4 | ||||
-rw-r--r-- | usr.bin/mg/def.h | 3 | ||||
-rw-r--r-- | usr.bin/mg/main.c | 6 |
3 files changed, 3 insertions, 10 deletions
diff --git a/usr.bin/mg/bell.c b/usr.bin/mg/bell.c index aa24bf65ea0..7e20466de82 100644 --- a/usr.bin/mg/bell.c +++ b/usr.bin/mg/bell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bell.c,v 1.1 2013/05/31 18:03:43 lum Exp $ */ +/* $OpenBSD: bell.c,v 1.2 2014/03/22 11:05:37 lum Exp $ */ /* * This file is in the public domain. @@ -18,7 +18,6 @@ bellinit(void) { doaudiblebell = 1; dovisiblebell = 0; - donebell = 0; } void @@ -32,7 +31,6 @@ dobeep(void) update(CNONE); usleep(50000); } - donebell = 1; } /* ARGSUSED */ diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h index 87635275339..ccd79e0b604 100644 --- a/usr.bin/mg/def.h +++ b/usr.bin/mg/def.h @@ -1,4 +1,4 @@ -/* $OpenBSD: def.h,v 1.139 2013/12/23 14:58:16 lum Exp $ */ +/* $OpenBSD: def.h,v 1.140 2014/03/22 11:05:37 lum Exp $ */ /* This file is in the public domain. */ @@ -712,7 +712,6 @@ extern int defb_nmodes; extern int defb_flag; extern int doaudiblebell; extern int dovisiblebell; -extern int donebell; extern char cinfo[]; extern char *keystrings[]; extern char pat[NPAT]; diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c index cb105323b55..9204d63e8a1 100644 --- a/usr.bin/mg/main.c +++ b/usr.bin/mg/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.71 2013/05/31 18:03:44 lum Exp $ */ +/* $OpenBSD: main.c,v 1.72 2014/03/22 11:05:37 lum Exp $ */ /* This file is in the public domain. */ @@ -20,7 +20,6 @@ int curgoal; /* goal column */ int startrow; /* row to start */ int doaudiblebell; /* audible bell toggle */ int dovisiblebell; /* visible bell toggle */ -int donebell; /* done't wring bell */ struct buffer *curbp; /* current buffer */ struct buffer *bheadp; /* BUFFER list head */ struct mgwin *curwp; /* current window */ @@ -187,11 +186,8 @@ notnum: /* FALLTHRU */ case FALSE: default: - if (!donebell) - dobeep(); macrodef = FALSE; } - donebell = 0; } } |