1
0
forked from aniani/vim

patch 8.2.1582: the channel log does not show typed text

Problem:    The channel log does not show typed text.
Solution:   Add raw typed text to the log file.
This commit is contained in:
Bram Moolenaar
2020-09-03 19:25:11 +02:00
parent 1f42f5a675
commit 7ca86fe8dc
3 changed files with 16 additions and 0 deletions

View File

@@ -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;