aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/state.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-09-18 23:26:03 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-09-19 01:11:09 +0200
commit7c00b9efcafa9046f8226ce4650f1b9ad67243c9 (patch)
tree86725e120b2e906a0c4a64b2a2a7bf2c26a7666f /src/nvim/state.c
parentb9bcfa9bc817aac07da266e12afb335f0b2b1737 (diff)
downloadrneovim-7c00b9efcafa9046f8226ce4650f1b9ad67243c9.tar.gz
rneovim-7c00b9efcafa9046f8226ce4650f1b9ad67243c9.tar.bz2
rneovim-7c00b9efcafa9046f8226ce4650f1b9ad67243c9.zip
log: RPC, input, other events
Diffstat (limited to 'src/nvim/state.c')
-rw-r--r--src/nvim/state.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/state.c b/src/nvim/state.c
index 5921bd45bf..d75f4038ae 100644
--- a/src/nvim/state.c
+++ b/src/nvim/state.c
@@ -64,6 +64,12 @@ getkey:
may_sync_undo();
}
+#if MIN_LOG_LEVEL <= DEBUG_LOG_LEVEL
+ char *keyname = key == K_EVENT
+ ? "K_EVENT" : (char *)get_special_key_name(key, mod_mask);
+ DLOG("input: %s", keyname);
+#endif
+
int execute_result = s->execute(s, key);
if (!execute_result) {
break;