]> git.pld-linux.org Git - packages/vim.git/blob - 5.7.012
official patches for vim.
[packages/vim.git] / 5.7.012
1 To: vim-dev@vim.org
2 Subject: Patch 5.7.012
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 ------------
6
7 Patch 5.7.012
8 Problem:    When using "-complete=buffer" for ":command" the user command
9             fails.
10 Solution:   In a user command don't replace the buffer name with a count for
11             the  buffer number.
12 Files:      src/ex_docmd.c
13
14
15 *** ../vim-5.7.11/src/ex_docmd.c        Tue Jun 20 11:18:24 2000
16 --- src/ex_docmd.c      Sun Oct 22 16:35:35 2000
17 ***************
18 *** 1350,1358 ****
19   
20       /*
21        * Accept buffer name.  Cannot be used at the same time with a buffer
22 !      * number.
23        */
24 !     if ((ea.argt & BUFNAME) && *ea.arg && ea.addr_count == 0)
25       {
26         /*
27          * :bdelete and :bunload take several arguments, separated by spaces:
28 --- 1350,1362 ----
29   
30       /*
31        * Accept buffer name.  Cannot be used at the same time with a buffer
32 !      * number.  Don't do this for a user command.
33        */
34 !     if ((ea.argt & BUFNAME) && *ea.arg && ea.addr_count == 0
35 ! #ifdef USER_COMMANDS
36 !           && ea.cmdidx != CMD_USER
37 ! #endif
38 !           )
39       {
40         /*
41          * :bdelete and :bunload take several arguments, separated by spaces:
42 *** ../vim-5.7.11/src/version.c Sat Oct  7 13:45:34 2000
43 --- src/version.c       Sun Oct 22 16:38:16 2000
44 ***************
45 *** 439,440 ****
46 --- 439,442 ----
47   {   /* Add new patch number below this line */
48 + /**/
49 +     12,
50   /**/
51
52 -- 
53 ARTHUR:  You fight with the strength of many men, Sir knight.
54          I am Arthur, King of the Britons.  [pause]
55          I seek the finest and the bravest knights in the land to join me
56          in my Court of Camelot.  [pause]
57          You have proved yourself worthy; will you join me?  [pause]
58          You make me sad.  So be it.  Come, Patsy.
59 BLACK KNIGHT:  None shall pass.
60                                   The Quest for the Holy Grail (Monty Python)
61
62 ///  Bram Moolenaar     Bram@moolenaar.net     http://www.moolenaar.net  \\\
63 \\\  Vim: http://www.vim.org      ICCF Holland: http://iccf-holland.org  ///
This page took 0.3134 seconds and 3 git commands to generate.