home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / old / 5.6.064 < prev    next >
Encoding:
Internet Message Format  |  2000-04-11  |  2.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.6.064
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.6.064
  8. Problem:    MS-DOS and Win32 console: Mouse doesn't work correctly after
  9.         including patch 5.6.28. (Vince Negri)
  10. Solution:   Don't check for mouse scroll wheel when the mouse code contains
  11.         the number of clicks.
  12. Files:        src/term.c
  13.  
  14.  
  15. *** ../vim-5.6.63/src/term.c    Fri Apr  7 10:12:54 2000
  16. --- src/term.c    Wed Apr 12 20:03:41 2000
  17. ***************
  18. *** 3525,3553 ****
  19.           mouse_row = bytes[2] - ' ' - 1;
  20.           slen += num_bytes;
  21.   
  22.           /*
  23.            * Handle mouse events.
  24.            * Recognize the xterm mouse wheel, but not in the GUI
  25. !          * (multi-clicks use >= 0x60).
  26.            */
  27.           if (mouse_code >= MOUSEWHEEL_LOW
  28. ! #ifdef USE_GUI
  29.               && !gui.in_use
  30. ! #endif
  31.               )
  32.           {
  33.               /* Keep the mouse_code before it's changed, so that we
  34.                * remember that it was a mouse wheel click. */
  35.               wheel_code = mouse_code;
  36.           }
  37. ! #  ifdef UNIX
  38.           else if (use_xterm_mouse() > 1)
  39.           {
  40.               if (mouse_code & MOUSE_DRAG_XTERM)
  41.               mouse_code |= MOUSE_DRAG;
  42.           }
  43. ! #  endif
  44. ! #  ifdef XTERM_CLIP
  45.           else if (!(mouse_code & MOUSE_DRAG & ~MOUSE_CLICK_MASK))
  46.           {
  47.               if ((mouse_code & MOUSE_RELEASE) == MOUSE_RELEASE)
  48. --- 3525,3554 ----
  49.           mouse_row = bytes[2] - ' ' - 1;
  50.           slen += num_bytes;
  51.   
  52. + #  if !defined(MSWIN) && !defined(MSDOS)
  53.           /*
  54.            * Handle mouse events.
  55.            * Recognize the xterm mouse wheel, but not in the GUI
  56. !          * and the MS-DOS or Win32 console (multi-clicks use >= 0x60).
  57.            */
  58.           if (mouse_code >= MOUSEWHEEL_LOW
  59. ! #   ifdef USE_GUI
  60.               && !gui.in_use
  61. ! #   endif
  62.               )
  63.           {
  64.               /* Keep the mouse_code before it's changed, so that we
  65.                * remember that it was a mouse wheel click. */
  66.               wheel_code = mouse_code;
  67.           }
  68. ! #   ifdef UNIX
  69.           else if (use_xterm_mouse() > 1)
  70.           {
  71.               if (mouse_code & MOUSE_DRAG_XTERM)
  72.               mouse_code |= MOUSE_DRAG;
  73.           }
  74. ! #   endif
  75. ! #   ifdef XTERM_CLIP
  76.           else if (!(mouse_code & MOUSE_DRAG & ~MOUSE_CLICK_MASK))
  77.           {
  78.               if ((mouse_code & MOUSE_RELEASE) == MOUSE_RELEASE)
  79. ***************
  80. *** 3555,3560 ****
  81. --- 3556,3562 ----
  82.               else
  83.               start_xterm_trace(mouse_code);
  84.           }
  85. + #   endif
  86.   #  endif
  87.           }
  88.   # endif /* !UNIX || XTERM_MOUSE */
  89. *** ../vim-5.6.63/src/version.c    Wed Apr 12 19:04:04 2000
  90. --- src/version.c    Wed Apr 12 20:34:01 2000
  91. ***************
  92. *** 420,421 ****
  93. --- 420,423 ----
  94.   {   /* Add new patch number below this line */
  95. + /**/
  96. +     64,
  97.   /**/
  98.  
  99. -- 
  100. hundred-and-one symptoms of being an internet addict:
  101. 14. You start introducing yourself as "Jim at I-I-Net dot net dot au"
  102.  
  103. /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\
  104. \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/
  105.