]> git.pld-linux.org Git - packages/vim.git/blame - 6.3.011
- fixed duplicate file listing; rel 3
[packages/vim.git] / 6.3.011
CommitLineData
2b73553d
AM
1To: vim-dev@vim.org
2Subject: Patch 6.3.011
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 6.3.011
11Problem: Crash when the completion function of a user-command uses a
12 "normal :cmd" command. (Hari Krishna Dara)
13Solution: Save the command line when invoking the completion function.
14Files: src/ex_getln.c
15
16
17*** ../vim-6.3.010/src/ex_getln.c Wed Jun 9 14:56:25 2004
18--- src/ex_getln.c Fri Jul 2 21:55:55 2004
19***************
20*** 3974,3979 ****
21--- 3974,3980 ----
22 char_u num[50];
23 garray_T ga;
24 int save_current_SID = current_SID;
25+ struct cmdline_info save_ccline;
26
27 if (xp->xp_arg == NULL || xp->xp_arg[0] == '\0')
28 return FAIL;
29***************
30*** 3987,3995 ****
31--- 3988,4004 ----
32 args[1] = ccline.cmdbuff;
33 args[2] = num;
34
35+ /* Save the cmdline, we don't know what the function may do. */
36+ save_ccline = ccline;
37+ ccline.cmdbuff = NULL;
38+ ccline.cmdprompt = NULL;
39 current_SID = xp->xp_scriptID;
40+
41 all = call_vim_function(xp->xp_arg, 3, args, FALSE);
42+
43+ ccline = save_ccline;
44 current_SID = save_current_SID;
45+
46 ccline.cmdbuff[ccline.cmdlen] = keep;
47 if (all == NULL)
48 return FAIL;
49*** ../vim-6.3.010/src/version.c Tue Jun 29 20:07:02 2004
50--- src/version.c Fri Jul 2 21:59:54 2004
51***************
52*** 643,644 ****
53--- 643,646 ----
54 { /* Add new patch number below this line */
55+ /**/
56+ 11,
57 /**/
58
59--
60Save the plankton - eat a whale.
61
62 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
63/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
64\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
65 \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
This page took 0.05939 seconds and 4 git commands to generate.