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.215 < prev    next >
Encoding:
Internet Message Format  |  2002-02-10  |  3.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.215
  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.215
  11. Problem:    After using "/" from Visual mode the Paste menu and Toolbar
  12.         entries don't work.  Pasting with the middle mouse doesn't work
  13.         and modeless selection doesn't work.
  14. Solution:   Use the command line mode menus and use the mouse like in the
  15.         command line.
  16. Files:        src/gui.c, src/menu.c, src/ui.c
  17.  
  18.  
  19. *** ../vim60.214/src/gui.c    Mon Feb 11 12:01:33 2002
  20. --- src/gui.c    Mon Feb 11 15:35:58 2002
  21. ***************
  22. *** 2552,2558 ****
  23.       {
  24.   #ifdef FEAT_VISUAL
  25.       /* Don't do modeless selection in Visual mode. */
  26. !     if (checkfor != MOUSE_NONEF && VIsual_active)
  27.           return;
  28.   #endif
  29.   
  30. --- 2552,2558 ----
  31.       {
  32.   #ifdef FEAT_VISUAL
  33.       /* Don't do modeless selection in Visual mode. */
  34. !     if (checkfor != MOUSE_NONEF && VIsual_active && (State & NORMAL))
  35.           return;
  36.   #endif
  37.   
  38. *** ../vim60.214/src/menu.c    Fri Feb  1 20:15:57 2002
  39. --- src/menu.c    Mon Feb 11 15:31:34 2002
  40. ***************
  41. *** 1518,1531 ****
  42.   {
  43.       int        idx;
  44.   
  45.   #ifdef FEAT_VISUAL
  46. !     if (VIsual_active)
  47.       idx = MENU_INDEX_VISUAL;
  48. -     else
  49.   #endif
  50. !     if ((state & INSERT))
  51. !     idx = MENU_INDEX_INSERT;
  52. !     else if ((state & CMDLINE) || state == HITRETURN || state == ASKMORE)
  53.       idx = MENU_INDEX_CMDLINE;
  54.       else if (finish_op)
  55.       idx = MENU_INDEX_OP_PENDING;
  56. --- 1520,1534 ----
  57.   {
  58.       int        idx;
  59.   
  60. +     if ((state & INSERT))
  61. +     idx = MENU_INDEX_INSERT;
  62. +     else if (state & CMDLINE)
  63. +     idx = MENU_INDEX_CMDLINE;
  64.   #ifdef FEAT_VISUAL
  65. !     else if (VIsual_active)
  66.       idx = MENU_INDEX_VISUAL;
  67.   #endif
  68. !     else if (state == HITRETURN || state == ASKMORE)
  69.       idx = MENU_INDEX_CMDLINE;
  70.       else if (finish_op)
  71.       idx = MENU_INDEX_OP_PENDING;
  72. *** ../vim60.214/src/ui.c    Tue Feb  5 13:38:06 2002
  73. --- src/ui.c    Mon Feb 11 15:40:12 2002
  74. ***************
  75. *** 396,402 ****
  76.       pos_T    start, end;
  77.   
  78.       /* If visual mode is only due to a redo command ("."), then ignore it */
  79. !     if (!redo_VIsual_busy && VIsual_active)
  80.       {
  81.       if (lt(VIsual, curwin->w_cursor))
  82.       {
  83. --- 396,402 ----
  84.       pos_T    start, end;
  85.   
  86.       /* If visual mode is only due to a redo command ("."), then ignore it */
  87. !     if (!redo_VIsual_busy && VIsual_active && (State & NORMAL))
  88.       {
  89.       if (lt(VIsual, curwin->w_cursor))
  90.       {
  91. ***************
  92. *** 490,496 ****
  93.       void
  94.   clip_copy_selection()
  95.   {
  96. !     if (VIsual_active && clip_star.available)
  97.       {
  98.       if (clip_isautosel())
  99.           clip_update_selection();
  100. --- 490,496 ----
  101.       void
  102.   clip_copy_selection()
  103.   {
  104. !     if (VIsual_active && (State & NORMAL) && clip_star.available)
  105.       {
  106.       if (clip_isautosel())
  107.           clip_update_selection();
  108. *** ../vim60.214/src/version.c    Mon Feb 11 15:01:01 2002
  109. --- src/version.c    Mon Feb 11 15:41:54 2002
  110. ***************
  111. *** 608,609 ****
  112. --- 608,611 ----
  113.   {   /* Add new patch number below this line */
  114. + /**/
  115. +     215,
  116.   /**/
  117.  
  118. -- 
  119. Vim is like Emacs without all the typing.  (John "Johann" Spetz)
  120.  
  121.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  122. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  123.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  124.