mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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:
parent
1f42f5a675
commit
7ca86fe8dc
@ -2065,6 +2065,13 @@ theend:
|
|||||||
buf[len++] = typeahead[0];
|
buf[len++] = typeahead[0];
|
||||||
mch_memmove(typeahead, typeahead + 1, --typeaheadlen);
|
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;
|
return len;
|
||||||
|
|
||||||
#else // FEAT_GUI_MSWIN
|
#else // FEAT_GUI_MSWIN
|
||||||
|
7
src/ui.c
7
src/ui.c
@ -949,6 +949,13 @@ fill_input_buf(int exit_on_error UNUSED)
|
|||||||
# else
|
# else
|
||||||
len = read(read_cmd_fd, (char *)inbuf + inbufcount, readlen);
|
len = read(read_cmd_fd, (char *)inbuf + inbufcount, readlen);
|
||||||
# endif
|
# 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)
|
if (len > 0 || got_int)
|
||||||
break;
|
break;
|
||||||
|
@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1582,
|
||||||
/**/
|
/**/
|
||||||
1581,
|
1581,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user