Patch 9.0.0812
Problem:    GUI mouse scrollwheel mappings don't work.
Solution:   Add check for "gui.in_use". (Christopher Plewright, closes #11418)
Files:      src/getchar.c


*** ../vim-9.0.0811/src/getchar.c       2022-10-20 17:59:34.610510336 +0100
--- src/getchar.c       2022-10-21 12:56:51.229338401 +0100
***************
*** 2529,2534 ****
--- 2529,2537 ----
                && (typebuf.tb_buf[typebuf.tb_off + 1] == KS_MODIFIER
  # if defined(MSWIN)
                    || (typebuf.tb_len >= 3
+ #  ifdef FEAT_GUI
+                     && !gui.in_use
+ #  endif
                      && typebuf.tb_buf[typebuf.tb_off + 1] == KS_EXTRA
                      && (typebuf.tb_buf[typebuf.tb_off + 2] == KE_MOUSEUP
                        || typebuf.tb_buf[typebuf.tb_off + 2] == KE_MOUSEDOWN
***************
*** 2542,2548 ****
            // The GUI code sends CSI KS_MODIFIER {flags}, but mappings expect
            // K_SPECIAL KS_MODIFIER {flags}.
            // MS-Windows sends mouse scroll events CSI KS_EXTRA {what}, but
!           // mappings expect K_SPECIAL KS_EXTRA {what}.
            tb_c1 = K_SPECIAL;
        }
  #endif
--- 2545,2551 ----
            // The GUI code sends CSI KS_MODIFIER {flags}, but mappings expect
            // K_SPECIAL KS_MODIFIER {flags}.
            // MS-Windows sends mouse scroll events CSI KS_EXTRA {what}, but
!           // non-GUI mappings expect K_SPECIAL KS_EXTRA {what}.
            tb_c1 = K_SPECIAL;
        }
  #endif
*** ../vim-9.0.0811/src/version.c       2022-10-21 12:05:41.918401161 +0100
--- src/version.c       2022-10-21 13:03:14.303733110 +0100
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     812,
  /**/

-- 
SOLDIER: Where did you get the coconuts?
ARTHUR:  Through ... We found them.
SOLDIER: Found them?  In Mercea.  The coconut's tropical!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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/20221021120411.6A2CE1C10D8%40moolenaar.net.

Raspunde prin e-mail lui