To: vim_dev@googlegroups.com Subject: Patch 8.2.0830 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0830 Problem: Motif: can't map "!". (Ben Jackson) Solution: Remove the shift modifier if it's already included in the key. (closes #6147) Files: src/gui_x11.c *** ../vim-8.2.0829/src/gui_x11.c 2020-05-16 14:01:48.113547782 +0200 --- src/gui_x11.c 2020-05-26 22:11:20.373878263 +0200 *************** *** 948,953 **** --- 948,958 ---- { string[0] = key; len = 1; + + // Remove the SHIFT modifier for keys where it's already included, + // e.g., '(', '!' and '*'. + if (!ASCII_ISALPHA(key) && key > 0x20 && key < 0x7f) + modifiers &= ~MOD_MASK_SHIFT; } if (modifiers != 0) *** ../vim-8.2.0829/src/version.c 2020-05-26 20:21:54.167611874 +0200 --- src/version.c 2020-05-26 22:14:01.709113365 +0200 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 830, /**/ -- hundred-and-one symptoms of being an internet addict: 188. You purchase a laptop so you can surf while sitting on the can. /// 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 ///