Patch 9.0.0801

4 views
Skip to first unread message

Bram Moolenaar

unread,
Oct 19, 2022, 3:07:46 PM10/19/22
to vim...@googlegroups.com

Patch 9.0.0801
Problem: The modifyOtherKeys flag is set when it should not.
Solution: Do not handle special key codes with a modifer value above 16 as a
modifyOtherKeys value. (issue #11403)
Files: src/term.c


*** ../vim-9.0.0800/src/term.c 2022-10-18 19:22:21.256701550 +0100
--- src/term.c 2022-10-19 19:41:53.778827042 +0100
***************
*** 5045,5052 ****
// Key with modifier:
// {lead}27;{modifier};{key}~
// {lead}{key};{modifier}u
! else if ((arg[0] == 27 && argc == 3 && trail == '~')
! || (argc == 2 && trail == 'u'))
{
return len + handle_key_with_modifier(arg, trail,
csi_len, offset, buf, bufsize, buflen);
--- 5045,5055 ----
// Key with modifier:
// {lead}27;{modifier};{key}~
// {lead}{key};{modifier}u
! // Only handles four modifiers, this won't work if the modifier value is
! // more than 16.
! else if (((arg[0] == 27 && argc == 3 && trail == '~')
! || (argc == 2 && trail == 'u'))
! && arg[1] <= 16)
{
return len + handle_key_with_modifier(arg, trail,
csi_len, offset, buf, bufsize, buflen);
*** ../vim-9.0.0800/src/version.c 2022-10-19 19:24:44.855402846 +0100
--- src/version.c 2022-10-19 19:53:26.074377360 +0100
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 801,
/**/

--
The chat program is in public domain. This is not the GNU public license.
If it breaks then you get to keep both pieces.
-- Copyright notice for the chat program

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages