To: vim_dev@googlegroups.com Subject: Patch 8.0.1354 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1354 Problem: Shift-Insert doesn't always work in MS-Windows console. Solution: Handle K_NUL differently. (Yasuhiro Matsumoto, closes #2381) Files: src/os_win32.c *** ../vim-8.0.1353/src/os_win32.c 2017-11-21 18:11:23.657015881 +0100 --- src/os_win32.c 2017-11-28 18:06:59.687014368 +0100 *************** *** 1817,1825 **** typeahead[typeaheadlen] = c; if (ch2 != NUL) { ! typeahead[typeaheadlen + n] = 3; ! typeahead[typeaheadlen + n + 1] = (char_u)ch2; ! n += 2; } if (conv) --- 1817,1834 ---- typeahead[typeaheadlen] = c; if (ch2 != NUL) { ! if (c == K_NUL) ! { ! /* fAnsiKey */ ! typeahead[typeaheadlen + n] = (char_u)ch2; ! n++; ! } ! else ! { ! typeahead[typeaheadlen + n] = 3; ! typeahead[typeaheadlen + n + 1] = (char_u)ch2; ! n += 2; ! } } if (conv) *** ../vim-8.0.1353/src/version.c 2017-11-28 18:03:39.936084387 +0100 --- src/version.c 2017-11-28 18:06:07.239295626 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1354, /**/ -- hundred-and-one symptoms of being an internet addict: 46. Your wife makes a new rule: "The computer cannot come to bed." /// 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 ///