summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-03 19:25:11 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-03 19:25:11 +0200
commit7ca86fe8dc584141d6a73408acf3e90d8c88c7b9 (patch)
tree5e86be88c9f4ea309e8f0e5017b70ef56672b621 /src/ui.c
parent1f42f5a675fdab9ce5cdafbecea59c45e81f7ff8 (diff)
downloadvim-git-7ca86fe8dc584141d6a73408acf3e90d8c88c7b9.tar.gz
patch 8.2.1582: the channel log does not show typed textv8.2.1582
Problem: The channel log does not show typed text. Solution: Add raw typed text to the log file.
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index fc24a01b4..7c8667559 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -949,6 +949,13 @@ fill_input_buf(int exit_on_error UNUSED)
# else
len = read(read_cmd_fd, (char *)inbuf + inbufcount, readlen);
# endif
+# ifdef FEAT_JOB_CHANNEL
+ if (len > 0)
+ {
+ inbuf[inbufcount + len] = NUL;
+ ch_log(NULL, "raw key input: \"%s\"", inbuf + inbufcount);
+ }
+# endif
if (len > 0 || got_int)
break;