aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index ce1a57350a..45959b7b67 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -63,9 +63,7 @@ static int pending_has_mouse = -1;
static Array call_buf = ARRAY_DICT_INIT;
-#if MIN_LOG_LEVEL > LOGLVL_DBG
-# define ui_log(funname)
-#else
+#ifdef NVIM_LOG_DEBUG
static size_t uilog_seen = 0;
static const char *uilog_last_event = NULL;
@@ -89,6 +87,8 @@ static void ui_log(const char *funname)
uilog_last_event = funname;
}
}
+#else
+# define ui_log(funname)
#endif
// UI_CALL invokes a function on all registered UI instances.