Skip to content

Commit 7ca86fe

Browse files
committed
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.
1 parent 1f42f5a commit 7ca86fe

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/os_win32.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,6 +2065,13 @@ mch_inchar(
20652065
buf[len++] = typeahead[0];
20662066
mch_memmove(typeahead, typeahead + 1, --typeaheadlen);
20672067
}
2068+
# ifdef FEAT_JOB_CHANNEL
2069+
if (len > 0)
2070+
{
2071+
buf[len] = NUL;
2072+
ch_log(NULL, "raw key input: \"%s\"", buf);
2073+
}
2074+
# endif
20682075
return len;
20692076

20702077
#else // FEAT_GUI_MSWIN

src/ui.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,13 @@ fill_input_buf(int exit_on_error UNUSED)
949949
# else
950950
len = read(read_cmd_fd, (char *)inbuf + inbufcount, readlen);
951951
# endif
952+
# ifdef FEAT_JOB_CHANNEL
953+
if (len > 0)
954+
{
955+
inbuf[inbufcount + len] = NUL;
956+
ch_log(NULL, "raw key input: \"%s\"", inbuf + inbufcount);
957+
}
958+
# endif
952959

953960
if (len > 0 || got_int)
954961
break;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ static char *(features[]) =
754754

755755
static int included_patches[] =
756756
{ /* Add new patch number below this line */
757+
/**/
758+
1582,
757759
/**/
758760
1581,
759761
/**/

0 commit comments

Comments
 (0)