From 60e036e1a3d2d601e00f0fd04939897b4f36de81 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Wed, 6 Dec 2000 08:59:47 +0000 Subject: [PATCH] Make the BEEP macro a bit safer. From EGE. --- mutt_curses.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutt_curses.h b/mutt_curses.h index 4c7e328e6..46b278e5c 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -56,7 +56,7 @@ #define CLEARLINE(x) move(x,0), clrtoeol() #define CENTERLINE(x,y) move(y, (COLS-strlen(x))/2), addstr(x) -#define BEEP if (option (OPTBEEP)) beep +#define BEEP() do { if (option (OPTBEEP)) beep(); } while (0) #if ! (defined(USE_SLANG_CURSES) || defined(HAVE_CURS_SET)) #define curs_set(x) -- 2.40.0