]>
Commit | Line | Data |
---|---|---|
d8621708 | 1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.046 | |
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.046 | |
11 | Problem: When evaluating an argument of a function throws an exception the | |
12 | function is still called. (Hari Krishna Dara) | |
13 | Solution: Don't call the function when an exception was thrown. | |
14 | Files: src/eval.c | |
15 | ||
16 | ||
17 | *** ../vim-6.2.045/src/eval.c Fri Jul 25 22:43:59 2003 | |
18 | --- src/eval.c Sat Jul 26 18:35:19 2003 | |
19 | *************** | |
20 | *** 2957,2967 **** | |
21 | else | |
22 | ret = FAIL; | |
23 | ||
24 | ! if (ret == OK) | |
25 | ! ret = call_func(name, len, retvar, argcount, argvars, | |
26 | firstline, lastline, doesrange, evaluate); | |
27 | ! else if (!aborting()) | |
28 | ! EMSG2(_("E116: Invalid arguments for function %s"), name); | |
29 | ||
30 | while (--argcount >= 0) | |
31 | clear_var(&argvars[argcount]); | |
32 | --- 2975,2988 ---- | |
33 | else | |
34 | ret = FAIL; | |
35 | ||
36 | ! if (!aborting()) | |
37 | ! { | |
38 | ! if (ret == OK) | |
39 | ! ret = call_func(name, len, retvar, argcount, argvars, | |
40 | firstline, lastline, doesrange, evaluate); | |
41 | ! else | |
42 | ! EMSG2(_("E116: Invalid arguments for function %s"), name); | |
43 | ! } | |
44 | ||
45 | while (--argcount >= 0) | |
46 | clear_var(&argvars[argcount]); | |
47 | *** ../vim-6.2.045/src/version.c Sun Jul 27 14:22:19 2003 | |
48 | --- src/version.c Sun Jul 27 14:25:19 2003 | |
49 | *************** | |
50 | *** 632,633 **** | |
51 | --- 632,635 ---- | |
52 | { /* Add new patch number below this line */ | |
53 | + /**/ | |
54 | + 46, | |
55 | /**/ | |
56 | ||
57 | -- | |
58 | Hacker: Someone skilled in computer programming (good guy). | |
59 | Cracker: A hacker that uses his skills to crack software (bad guy). | |
60 | ||
61 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
62 | /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ | |
63 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
64 | \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// |