]>
Commit | Line | Data |
---|---|---|
717fd8f6 AF |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.077 | |
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.2.077 | |
11 | Problem: When a user function specifies custom completion, the function | |
12 | gets a zero argument instead of an empty string when there is no | |
13 | word before the cursor. (Preben Guldberg) | |
14 | Solution: Don't convert an empty string to a zero. | |
15 | Files: src/eval.c | |
16 | ||
17 | ||
18 | *** ../vim-6.2.076/src/eval.c Mon Aug 11 23:03:53 2003 | |
19 | --- src/eval.c Sun Sep 7 23:18:06 2003 | |
20 | *************** | |
21 | *** 694,700 **** | |
22 | { | |
23 | /* Recognize a number argument, the others must be strings. */ | |
24 | vim_str2nr(argv[i], NULL, &len, TRUE, TRUE, &n, NULL); | |
25 | ! if (len == (int)STRLEN(argv[i])) | |
26 | { | |
27 | argvars[i].var_type = VAR_NUMBER; | |
28 | argvars[i].var_val.var_number = n; | |
29 | --- 694,700 ---- | |
30 | { | |
31 | /* Recognize a number argument, the others must be strings. */ | |
32 | vim_str2nr(argv[i], NULL, &len, TRUE, TRUE, &n, NULL); | |
33 | ! if (len != 0 && len == (int)STRLEN(argv[i])) | |
34 | { | |
35 | argvars[i].var_type = VAR_NUMBER; | |
36 | argvars[i].var_val.var_number = n; | |
37 | *** ../vim-6.2.076/src/version.c Wed Sep 10 21:35:55 2003 | |
38 | --- src/version.c Wed Sep 10 21:39:04 2003 | |
39 | *************** | |
40 | *** 632,633 **** | |
41 | --- 632,635 ---- | |
42 | { /* Add new patch number below this line */ | |
43 | + /**/ | |
44 | + 77, | |
45 | /**/ | |
46 | ||
47 | -- | |
48 | LAUNCELOT: Isn't there a St. Aaaaarrrrrrggghhh's in Cornwall? | |
49 | ARTHUR: No, that's Saint Ives. | |
50 | "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD | |
51 | ||
52 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
53 | /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ | |
54 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
55 | \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// |