To: vim_dev@googlegroups.com Subject: Patch 8.2.1582 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///