To: vim_dev@googlegroups.com Subject: Patch 8.0.1356 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1356 Problem: Using simalt in a GUIEnter autocommand inserts strange characters. (Chih-Long Chang) Solution: Ignore K_NOP in Insert mode. (closes #2379) Files: src/edit.c, src/ex_getln.c *** ../vim-8.0.1355/src/edit.c 2017-11-25 17:14:29.596189588 +0100 --- src/edit.c 2017-11-28 20:40:54.825118851 +0100 *************** *** 781,787 **** #endif /* ! * Get a character for Insert mode. Ignore K_IGNORE. */ if (c != K_CURSORHOLD) lastc = c; /* remember the previous char for CTRL-D */ --- 781,787 ---- #endif /* ! * Get a character for Insert mode. Ignore K_IGNORE and K_NOP. */ if (c != K_CURSORHOLD) lastc = c; /* remember the previous char for CTRL-D */ *************** *** 798,804 **** do { c = safe_vgetc(); ! } while (c == K_IGNORE); #ifdef FEAT_AUTOCMD /* Don't want K_CURSORHOLD for the second key, e.g., after CTRL-V. */ --- 798,804 ---- do { c = safe_vgetc(); ! } while (c == K_IGNORE || c == K_NOP); #ifdef FEAT_AUTOCMD /* Don't want K_CURSORHOLD for the second key, e.g., after CTRL-V. */ *** ../vim-8.0.1355/src/ex_getln.c 2017-11-25 17:14:29.596189588 +0100 --- src/ex_getln.c 2017-11-28 20:44:32.331876531 +0100 *************** *** 417,428 **** cursorcmd(); /* set the cursor on the right spot */ ! /* Get a character. Ignore K_IGNORE, it should not do anything, such ! * as stop completion. */ do { c = safe_vgetc(); ! } while (c == K_IGNORE); if (KeyTyped) { --- 417,428 ---- cursorcmd(); /* set the cursor on the right spot */ ! /* Get a character. Ignore K_IGNORE and K_NOP, they should not do ! * anything, such as stop completion. */ do { c = safe_vgetc(); ! } while (c == K_IGNORE || c == K_NOP); if (KeyTyped) { *** ../vim-8.0.1355/src/version.c 2017-11-28 20:06:06.913326460 +0100 --- src/version.c 2017-11-28 20:44:57.795730569 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1356, /**/ -- hundred-and-one symptoms of being an internet addict: 51. You put a pillow case over your laptop so your lover doesn't see it while you are pretending to catch your breath. /// 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 ///