Patch 9.0.0385
Problem:    GUI: when CTRL-D is mapped in Insert mode it gets inserted.
            (Yasuhiro Matsumoto)
Solution:   Also recognize modifier starting with CSI. (closes #11057)
Files:      src/getchar.c


*** ../vim-9.0.0384/src/getchar.c       2022-08-31 14:46:07.911016920 +0100
--- src/getchar.c       2022-09-05 12:54:12.493255966 +0100
***************
*** 2356,2362 ****
        if (offset + 3 >= typebuf.tb_len)
            break;
        tp = typebuf.tb_buf + typebuf.tb_off + offset;
!       if (tp[0] == K_SPECIAL && tp[1] == KS_MODIFIER)
        {
            // A modifier was not used for a mapping, apply it to ASCII keys.
            // Shift would already have been applied.
--- 2356,2362 ----
        if (offset + 3 >= typebuf.tb_len)
            break;
        tp = typebuf.tb_buf + typebuf.tb_off + offset;
!       if ((tp[0] == K_SPECIAL || tp[0] == CSI) && tp[1] == KS_MODIFIER)
        {
            // A modifier was not used for a mapping, apply it to ASCII keys.
            // Shift would already have been applied.
*** ../vim-9.0.0384/src/version.c       2022-09-05 11:04:10.687888165 +0100
--- src/version.c       2022-09-05 12:56:18.289626201 +0100
***************
*** 705,706 ****
--- 705,708 ----
  {   /* Add new patch number below this line */
+ /**/
+     385,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
2. You kiss your girlfriend's home page.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220905120600.C36451C0CE4%40moolenaar.net.

Raspunde prin e-mail lui