To: vim_dev@googlegroups.com Subject: Patch 8.0.1659 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- 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 ///