From: Bram Moolenaar Date: Thu, 3 Sep 2020 17:25:11 +0000 (+0200) Subject: patch 8.2.1582: the channel log does not show typed text X-Git-Tag: v8.2.1582 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ca86fe8dc584141d6a73408acf3e90d8c88c7b9;p=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. --- diff --git a/src/os_win32.c b/src/os_win32.c index 96af44364..52573fe62 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -2065,6 +2065,13 @@ theend: buf[len++] = typeahead[0]; mch_memmove(typeahead, typeahead + 1, --typeaheadlen); } +# ifdef FEAT_JOB_CHANNEL + if (len > 0) + { + buf[len] = NUL; + ch_log(NULL, "raw key input: \"%s\"", buf); + } +# endif return len; #else // FEAT_GUI_MSWIN 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; diff --git a/src/version.c b/src/version.c index 39e81bc9a..9c5f37097 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1582, /**/ 1581, /**/