]>
Commit | Line | Data |
---|---|---|
05649561 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.229 | |
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.229 | |
11 | Problem: ":function" with a name that uses magic curlies does not work | |
12 | inside a function. (Servatius Brandt) | |
13 | Solution: Skip over the function name properly. | |
14 | Files: src/eval.c | |
15 | ||
16 | ||
17 | *** ../vim-6.2.228/src/eval.c Sun Jan 18 21:27:18 2004 | |
18 | --- src/eval.c Mon Feb 2 16:49:46 2004 | |
19 | *************** | |
20 | *** 8892,8899 **** | |
21 | p += eval_fname_script(p); | |
22 | if (ASCII_ISALPHA(*p)) | |
23 | { | |
24 | ! while (ASCII_ISALPHA(*p) || isdigit(*p) || *p == '_') | |
25 | ! ++p; | |
26 | if (*skipwhite(p) == '(') | |
27 | { | |
28 | ++nesting; | |
29 | --- 8905,8911 ---- | |
30 | p += eval_fname_script(p); | |
31 | if (ASCII_ISALPHA(*p)) | |
32 | { | |
33 | ! (void)trans_function_name(&p, TRUE, FALSE); | |
34 | if (*skipwhite(p) == '(') | |
35 | { | |
36 | ++nesting; | |
37 | *** ../vim-6.2.228/src/version.c Tue Feb 3 16:29:52 2004 | |
38 | --- src/version.c Tue Feb 3 16:32:13 2004 | |
39 | *************** | |
40 | *** 639,640 **** | |
41 | --- 639,642 ---- | |
42 | { /* Add new patch number below this line */ | |
43 | + /**/ | |
44 | + 229, | |
45 | /**/ | |
46 | ||
47 | -- | |
48 | Tips for aliens in New York: Land anywhere. Central Park, anywhere. | |
49 | No one will care or indeed even notice. | |
50 | -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy" | |
51 | ||
52 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
53 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
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 /// |