]> granicus.if.org Git - vim/commitdiff
patch 8.2.1582: the channel log does not show typed text v8.2.1582
authorBram Moolenaar <Bram@vim.org>
Thu, 3 Sep 2020 17:25:11 +0000 (19:25 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 3 Sep 2020 17:25:11 +0000 (19:25 +0200)
Problem:    The channel log does not show typed text.
Solution:   Add raw typed text to the log file.

src/os_win32.c
src/ui.c
src/version.c

index 96af44364b1b286ab75182287ae70436f757b8be..52573fe621cdc3cabb322ca2de6a5ab9f9219c0e 100644 (file)
@@ -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
index fc24a01b4d67157644e1e50b48de9e0b9e9dc18e..7c866755953919e8e5c44f7620d3f3e0375c7a37 100644 (file)
--- 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;
index 39e81bc9ad893ad73f1f51d7ea57d81a75ca3d9b..9c5f37097df93476eea972315e9e46267c58d249 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1582,
 /**/
     1581,
 /**/