From 14fc242cfa334ffe836f8537c4e9522d60aba9b1 Mon Sep 17 00:00:00 2001 From: Mark Lumsden Date: Sun, 3 Jan 2016 19:37:09 +0000 Subject: Allow macro execution to continue without delay in the event of a visble bell call. --- usr.bin/mg/bell.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.bin/mg/bell.c b/usr.bin/mg/bell.c index 3ee30cf1fe2..7c1753d797c 100644 --- a/usr.bin/mg/bell.c +++ b/usr.bin/mg/bell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bell.c,v 1.3 2015/03/19 21:22:15 bcallah Exp $ */ +/* $OpenBSD: bell.c,v 1.4 2016/01/03 19:37:08 lum Exp $ */ /* * This file is in the public domain. @@ -17,6 +17,7 @@ #include #include "def.h" +#include "macro.h" void bellinit(void) @@ -34,6 +35,8 @@ dobeep(void) if (dovisiblebell) { sgarbf = TRUE; update(CNONE); + if (inmacro) /* avoid delaying macro execution. */ + return; usleep(50000); } } -- cgit v1.2.3