aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/state.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-09-19 07:55:46 +0200
committerGitHub <noreply@github.com>2018-09-19 07:55:46 +0200
commitd0401e827bdeff99fc6a0fa6599cad2970bd6136 (patch)
tree86725e120b2e906a0c4a64b2a2a7bf2c26a7666f /src/nvim/state.c
parenta316258d2c15e180b4cd9d59cfad3f9f1eaf2fcc (diff)
parent7c00b9efcafa9046f8226ce4650f1b9ad67243c9 (diff)
downloadrneovim-d0401e827bdeff99fc6a0fa6599cad2970bd6136.tar.gz
rneovim-d0401e827bdeff99fc6a0fa6599cad2970bd6136.tar.bz2
rneovim-d0401e827bdeff99fc6a0fa6599cad2970bd6136.zip
Merge #9014 from justinmk/log-more
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;