Patch 8.0.1660
Problem:    Scroll events not recognized for some xterm emulators.
Solution:   Recognize mouse codes 0x40 and 0x41 as scroll events.
Files:      src/term.c


*** ../vim-8.0.1658/src/term.c  2018-03-20 11:17:00.584795393 +0100
--- src/term.c  2018-04-04 21:51:27.782441684 +0200
***************
*** 5195,5204 ****
  #    ifdef FEAT_GUI
                        && !gui.in_use
  #    endif
!                       && (mouse_code == 0x23 || mouse_code == 0x24))
                {
!                   /* Apparently used by rxvt scroll wheel. */
!                   wheel_code = mouse_code - 0x23 + MOUSEWHEEL_LOW;
                }
  #   endif
  
--- 5195,5207 ----
  #    ifdef FEAT_GUI
                        && !gui.in_use
  #    endif
!                       && (mouse_code == 0x23 || mouse_code == 0x24
!                           || mouse_code == 0x40 || mouse_code == 0x41))
                {
!                   /* Apparently 0x23 and 0x24 are used by rxvt scroll wheel.
!                    * And 0x40 and 0x41 are used by some xterm emulator. */
!                   wheel_code = mouse_code - (mouse_code >= 0x40 ? 0x40 : 0x23)
!                                                             + MOUSEWHEEL_LOW;
                }
  #   endif
  
*** ../vim-8.0.1658/src/version.c       2018-04-03 14:21:09.425117740 +0200
--- src/version.c       2018-04-04 21:52:45.766007743 +0200
***************
*** 764,765 ****
--- 764,767 ----
  {   /* Add new patch number below this line */
+ /**/
+     1659,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
92. It takes you two hours to check all 14 of your mailboxes.

 /// Bram Moolenaar -- [email protected] -- 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    ///

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui