Patch 8.2.1582

6 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 3, 2020, 1:25:50 PM9/3/20
to vim...@googlegroups.com

Patch 8.2.1582
Problem: The channel log does not show typed text.
Solution: Add raw typed text to the log file.
Files: src/ui.c, src/os_win32.c


*** ../vim-8.2.1581/src/ui.c 2020-08-23 14:28:24.111838486 +0200
--- src/ui.c 2020-09-03 19:04:50.420701160 +0200
***************
*** 949,954 ****
--- 949,961 ----
# 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;
*** ../vim-8.2.1581/src/os_win32.c 2020-08-23 14:28:24.111838486 +0200
--- src/os_win32.c 2020-09-03 19:21:23.286347366 +0200
***************
*** 2065,2070 ****
--- 2065,2077 ----
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
*** ../vim-8.2.1581/src/version.c 2020-09-03 18:52:20.223638410 +0200
--- src/version.c 2020-09-03 19:22:23.338290842 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1582,
/**/

--
[clop clop]
ARTHUR: Old woman!
DENNIS: Man!
ARTHUR: Man, sorry. What knight lives in that castle over there?
DENNIS: I'm thirty seven.
ARTHUR: What?
DENNIS: I'm thirty seven -- I'm not old!
The Quest for the Holy Grail (Monty Python)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages