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 / 6.0.190 < prev    next >
Encoding:
Internet Message Format  |  2002-02-05  |  2.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.190
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.190
  11. Problem:    GUI: when 'mouse' is empty a click with the middle button still
  12.         moves the cursor.
  13. Solution:   Paste at the cursor position instead of the mouse position.
  14. Files:        src/normal.c
  15.  
  16.  
  17. *** ../vim60.189/src/normal.c    Mon Feb  4 13:15:45 2002
  18. --- src/normal.c    Wed Feb  6 10:48:03 2002
  19. ***************
  20. *** 2178,2189 ****
  21.            */
  22.       }
  23.   
  24.       /*
  25.        * Middle click in insert mode doesn't move the mouse, just insert the
  26.        * contents of a register.  '.' register is special, can't insert that
  27.        * with do_put().
  28.        */
  29. !     else if (State & INSERT)
  30.       {
  31.           if (regname == '.')
  32.           insert_reg(regname, TRUE);
  33. --- 2178,2194 ----
  34.            */
  35.       }
  36.   
  37. +     else if ((State & INSERT) == 0)
  38. +         return FALSE;
  39.       /*
  40.        * Middle click in insert mode doesn't move the mouse, just insert the
  41.        * contents of a register.  '.' register is special, can't insert that
  42.        * with do_put().
  43. +      * Also paste at the cursor if the current mode isn't in 'mouse' (only
  44. +      * happens for the GUI).
  45.        */
  46. !     if ((State & INSERT) || !mouse_has(MOUSE_NORMAL))
  47.       {
  48.           if (regname == '.')
  49.           insert_reg(regname, TRUE);
  50. ***************
  51. *** 2207,2214 ****
  52.           }
  53.           return FALSE;
  54.       }
  55. -     else
  56. -         return FALSE;
  57.       }
  58.   
  59.       /* When dragging or button-up stay in the same window. */
  60. --- 2212,2217 ----
  61. *** ../vim60.189/src/version.c    Tue Feb  5 22:26:51 2002
  62. --- src/version.c    Wed Feb  6 10:49:48 2002
  63. ***************
  64. *** 608,609 ****
  65. --- 608,611 ----
  66.   {   /* Add new patch number below this line */
  67. + /**/
  68. +     190,
  69.   /**/
  70.  
  71. -- 
  72. hundred-and-one symptoms of being an internet addict:
  73. 241. You try to look for Net Search even when you're in File Manager.
  74.  
  75.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  76. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  77.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  78.