aboutsummaryrefslogtreecommitdiffstats
path: root/vi/v_itxt.c
diff options
context:
space:
mode:
Diffstat (limited to 'vi/v_itxt.c')
-rw-r--r--vi/v_itxt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vi/v_itxt.c b/vi/v_itxt.c
index 704a0c322176..3c69ed7065fe 100644
--- a/vi/v_itxt.c
+++ b/vi/v_itxt.c
@@ -48,10 +48,10 @@
* position.) We also check for mapped keys waiting, i.e. if we're in the
* middle of a map, don't bother logging the cursor.
*/
-#define LOG_CORRECT { \
+#define LOG_CORRECT do { \
if (!MAPPED_KEYS_WAITING(sp)) \
(void)log_cursor(sp); \
-}
+} while (0)
static u_int32_t set_txt_std(SCR *, VICMD *, u_int32_t);