aboutsummaryrefslogtreecommitdiffstats
path: root/vi/vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'vi/vi.c')
-rw-r--r--vi/vi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vi/vi.c b/vi/vi.c
index 27ace47a8ea3..af0b7598beea 100644
--- a/vi/vi.c
+++ b/vi/vi.c
@@ -405,7 +405,7 @@ ret: rval = 1;
return (rval);
}
-#define KEY(key, ec_flags) { \
+#define KEY(key, ec_flags) do { \
if ((gcret = v_key(sp, 0, &ev, ec_flags)) != GC_OK) \
return (gcret); \
if (ev.e_value == K_ESCAPE) \
@@ -413,7 +413,7 @@ ret: rval = 1;
if (F_ISSET(&ev.e_ch, CH_MAPPED)) \
*mappedp = 1; \
key = ev.e_c; \
-}
+} while (0)
/*
* The O_TILDEOP option makes the ~ command take a motion instead