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 -- [email protected] -- 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 ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202009031725.083HPckY100355%40masaka.moolenaar.net.