To: vim_dev@googlegroups.com Subject: Patch 8.0.1355 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1355 (after 8.0.1354) Problem: Cursor keys don't work in MS-Windows console. Solution: Revert the previous patch. Files: src/os_win32.c *** ../vim-8.0.1354/src/os_win32.c 2017-11-28 18:07:56.102711615 +0100 --- src/os_win32.c 2017-11-28 20:05:50.377431412 +0100 *************** *** 1789,1795 **** #endif { int n = 1; - int conv = FALSE; #ifdef FEAT_MBYTE if (ch2 == NUL) --- 1789,1794 ---- *************** *** 1817,1856 **** 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) ! { ! char_u *p = typeahead + typeaheadlen; ! ! if (*p != K_NUL) ! { ! char_u *e = typeahead + TYPEAHEADLEN; ! ! while (*p && p < e) ! { ! if (*p == K_NUL) ! { ! ++p; ! mch_memmove(p + 1, p, ((size_t)(e - p)) - 1); ! *p = 3; ! ++n; ! } ! ++p; ! } ! } } /* Use the ALT key to set the 8th bit of the character --- 1816,1824 ---- typeahead[typeaheadlen] = c; if (ch2 != NUL) { ! typeahead[typeaheadlen + n] = 3; ! typeahead[typeaheadlen + n + 1] = (char_u)ch2; ! n += 2; } /* Use the ALT key to set the 8th bit of the character *** ../vim-8.0.1354/src/version.c 2017-11-28 18:07:56.102711615 +0100 --- src/version.c 2017-11-28 20:03:39.502271845 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1355, /**/ -- hundred-and-one symptoms of being an internet addict: 50. The last girl you picked up was only a jpeg. /// 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 ///