4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
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.
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
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]))
27 argvars[i].var_type = VAR_NUMBER;
28 argvars[i].var_val.var_number = n;
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]))
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
42 { /* Add new patch number below this line */
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
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 ///