]>
Commit | Line | Data |
---|---|---|
c84df032 ER |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.0.173 | |
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 7.0.173 | |
11 | Problem: ":call f().TT()" doesn't work. (Richard Emberson) | |
12 | Solution: When a function returns a Dictionary or another composite continue | |
13 | evaluating what follows. | |
14 | Files: src/eval.c | |
15 | ||
16 | ||
17 | *** ../vim-7.0.172/src/eval.c Tue Nov 21 19:36:00 2006 | |
18 | --- src/eval.c Tue Nov 28 20:50:02 2006 | |
19 | *************** | |
20 | *** 3184,3192 **** | |
21 | --- 3184,3201 ---- | |
22 | failed = TRUE; | |
23 | break; | |
24 | } | |
25 | + | |
26 | + /* Handle a function returning a Funcref, Dictionary or List. */ | |
27 | + if (handle_subscript(&arg, &rettv, !eap->skip, TRUE) == FAIL) | |
28 | + { | |
29 | + failed = TRUE; | |
30 | + break; | |
31 | + } | |
32 | + | |
33 | clear_tv(&rettv); | |
34 | if (doesrange || eap->skip) | |
35 | break; | |
36 | + | |
37 | /* Stop when immediately aborting on error, or when an interrupt | |
38 | * occurred or an exception was thrown but not caught. | |
39 | * get_func_tv() returned OK, so that the check for trailing | |
40 | *** ../vim-7.0.172/src/version.c Tue Nov 28 18:37:55 2006 | |
41 | --- src/version.c Tue Nov 28 20:53:18 2006 | |
42 | *************** | |
43 | *** 668,669 **** | |
44 | --- 668,671 ---- | |
45 | { /* Add new patch number below this line */ | |
46 | + /**/ | |
47 | + 173, | |
48 | /**/ | |
49 | ||
50 | -- | |
51 | "A mouse can be just as dangerous as a bullet or a bomb." | |
52 | (US Representative Lamar Smith, R-Texas) | |
53 | ||
54 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
55 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
56 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
57 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |