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.1.320 < prev    next >
Encoding:
Internet Message Format  |  2003-02-03  |  4.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.320
  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.1.320 (depends on 6.1.313)
  11. Problem:    When a ":drop one\ file" command is used the file "one\ file" is
  12.         opened, the backslash is not removed. (Taro Muraoka)
  13. Solution:   Handle backslashes correctly.  Always set the argument list to
  14.         keep it simple.
  15. Files:        runtime/doc/windows.txt, src/ex_cmds.c
  16.  
  17.  
  18. *** ../vim61.319/runtime/doc/windows.txt    Sat Feb  1 16:43:17 2003
  19. --- runtime/doc/windows.txt    Tue Feb  4 22:26:22 2003
  20. ***************
  21. *** 1,4 ****
  22. ! *windows.txt*   For Vim version 6.1.  Last change: 2003 Feb 01
  23.   
  24.   
  25.             VIM REFERENCE MANUAL    by Bram Moolenaar
  26. --- 1,4 ----
  27. ! *windows.txt*   For Vim version 6.1.  Last change: 2003 Feb 04
  28.   
  29.   
  30.             VIM REFERENCE MANUAL    by Bram Moolenaar
  31. ***************
  32. *** 588,601 ****
  33.   
  34.                           *:dr* *:drop*
  35.   :dr[op] {file} ..
  36. !         Edit the first file in a window.
  37.           - If the file is already open in a window change to that
  38.             window.
  39.           - If the file is not open in a window edit the file in the
  40.             current window.  If the current buffer can't be |abandon|ed,
  41.             the window is split first.
  42. !         When there are two or more arguments the |argument-list| is
  43. !         set, like with the |:next| command.
  44.           The purpose of this command is that it can be used from a
  45.           program that wants Vim to edit another file, e.g., a debugger.
  46.           {only available when compiled with the +gui feature}
  47. --- 588,600 ----
  48.   
  49.                           *:dr* *:drop*
  50.   :dr[op] {file} ..
  51. !         Edit the first {file} in a window.
  52.           - If the file is already open in a window change to that
  53.             window.
  54.           - If the file is not open in a window edit the file in the
  55.             current window.  If the current buffer can't be |abandon|ed,
  56.             the window is split first.
  57. !         The |argument-list| is set, like with the |:next| command.
  58.           The purpose of this command is that it can be used from a
  59.           program that wants Vim to edit another file, e.g., a debugger.
  60.           {only available when compiled with the +gui feature}
  61. *** ../vim61.319/src/ex_cmds.c    Sat Feb  1 16:43:17 2003
  62. --- src/ex_cmds.c    Tue Feb  4 22:23:13 2003
  63. ***************
  64. *** 5659,5664 ****
  65. --- 5659,5666 ----
  66.        * so, jump to that window.
  67.        * We would actually need to check all arguments, but that's complicated
  68.        * and mostly only one file is dropped.
  69. +      * This also ignores wildcards, since it is very unlikely the user is
  70. +      * editing a file name with a wildcard character.
  71.        */
  72.       arg = vim_strsave(eap->arg);
  73.       if (arg != NULL)
  74. ***************
  75. *** 5684,5696 ****
  76.   
  77.           if (incurwin)
  78.           {
  79. !         /* Already editing the file.  If there are more redefine the
  80. !          * argument list. */
  81. !         if (two_or_more)
  82. !         {
  83. !             set_arglist(eap->arg);
  84. !             curwin->w_arg_idx = 0;
  85. !         }
  86.           vim_free(arg);
  87.           return;
  88.           }
  89. --- 5686,5694 ----
  90.   
  91.           if (incurwin)
  92.           {
  93. !         /* Already editing the file.  Redefine the argument list. */
  94. !         set_arglist(eap->arg);
  95. !         curwin->w_arg_idx = 0;
  96.           vim_free(arg);
  97.           return;
  98.           }
  99. ***************
  100. *** 5718,5750 ****
  101.   # endif
  102.       }
  103.   
  104. !     if (two_or_more)
  105.       {
  106. !     /* Fake a ":snext" or ":next" command, redefine the arglist. */
  107. !     if (split)
  108. !     {
  109. !         eap->cmdidx = CMD_snext;
  110. !         eap->cmd[0] = 's';
  111. !     }
  112. !     else
  113. !         eap->cmdidx = CMD_next;
  114. !     ex_next(eap);
  115.       }
  116.       else
  117. !     {
  118. !     /* Fake a ":split" or ":edit" command, don't change the arglist. */
  119. ! # ifdef FEAT_WINDOWS
  120. !     if (split)
  121. !     {
  122. !         eap->cmdidx = CMD_split;
  123. !         ex_splitview(eap);
  124. !     }
  125. !     else
  126. ! # endif
  127. !     {
  128. !         eap->cmdidx = CMD_edit;
  129. !         do_exedit(eap, NULL);
  130. !     }
  131. !     }
  132.   }
  133.   #endif
  134. --- 5716,5729 ----
  135.   # endif
  136.       }
  137.   
  138. !     /* Fake a ":snext" or ":next" command, redefine the arglist. */
  139. !     if (split)
  140.       {
  141. !     eap->cmdidx = CMD_snext;
  142. !     eap->cmd[0] = 's';
  143.       }
  144.       else
  145. !     eap->cmdidx = CMD_next;
  146. !     ex_next(eap);
  147.   }
  148.   #endif
  149. *** ../vim61.319/src/version.c    Tue Feb  4 20:07:52 2003
  150. --- src/version.c    Tue Feb  4 22:28:22 2003
  151. ***************
  152. *** 608,609 ****
  153. --- 608,611 ----
  154.   {   /* Add new patch number below this line */
  155. + /**/
  156. +     320,
  157.   /**/
  158.  
  159. -- 
  160. hundred-and-one symptoms of being an internet addict:
  161. 119. You are reading a book and look for the scroll bar to get to
  162.      the next page.
  163.  
  164.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  165. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  166. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  167.  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
  168.