|
Karsten Hopp |
d5f5f3 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
d5f5f3 |
Subject: Patch 7.3.329
|
|
Karsten Hopp |
d5f5f3 |
Fcc: outbox
|
|
Karsten Hopp |
d5f5f3 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
d5f5f3 |
Mime-Version: 1.0
|
|
Karsten Hopp |
d5f5f3 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
d5f5f3 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
d5f5f3 |
------------
|
|
Karsten Hopp |
d5f5f3 |
|
|
Karsten Hopp |
d5f5f3 |
Patch 7.3.329
|
|
Karsten Hopp |
d5f5f3 |
Problem: When skipping over code from ":for" to ":endfor" get an error for
|
|
Karsten Hopp |
d5f5f3 |
calling a dict function. (Yasuhiro Matsumoto)
|
|
Karsten Hopp |
d5f5f3 |
Solution: Ignore errors when skipping over :call command.
|
|
Karsten Hopp |
d5f5f3 |
Files: src/ex_docmd.c, src/eval.c
|
|
Karsten Hopp |
d5f5f3 |
|
|
Karsten Hopp |
d5f5f3 |
|
|
Karsten Hopp |
d5f5f3 |
*** ../vim-7.3.328/src/ex_docmd.c 2011-09-21 19:10:42.000000000 +0200
|
|
Karsten Hopp |
d5f5f3 |
--- src/ex_docmd.c 2011-09-30 17:59:51.000000000 +0200
|
|
Karsten Hopp |
d5f5f3 |
***************
|
|
Karsten Hopp |
d5f5f3 |
*** 371,381 ****
|
|
Karsten Hopp |
d5f5f3 |
# define ex_endif ex_ni
|
|
Karsten Hopp |
d5f5f3 |
# define ex_else ex_ni
|
|
Karsten Hopp |
d5f5f3 |
# define ex_while ex_ni
|
|
Karsten Hopp |
d5f5f3 |
- # define ex_for ex_ni
|
|
Karsten Hopp |
d5f5f3 |
# define ex_continue ex_ni
|
|
Karsten Hopp |
d5f5f3 |
# define ex_break ex_ni
|
|
Karsten Hopp |
d5f5f3 |
# define ex_endwhile ex_ni
|
|
Karsten Hopp |
d5f5f3 |
- # define ex_endfor ex_ni
|
|
Karsten Hopp |
d5f5f3 |
# define ex_throw ex_ni
|
|
Karsten Hopp |
d5f5f3 |
# define ex_try ex_ni
|
|
Karsten Hopp |
d5f5f3 |
# define ex_catch ex_ni
|
|
Karsten Hopp |
d5f5f3 |
--- 371,379 ----
|
|
Karsten Hopp |
d5f5f3 |
*** ../vim-7.3.328/src/eval.c 2011-09-30 16:39:41.000000000 +0200
|
|
Karsten Hopp |
d5f5f3 |
--- src/eval.c 2011-09-30 18:29:58.000000000 +0200
|
|
Karsten Hopp |
d5f5f3 |
***************
|
|
Karsten Hopp |
d5f5f3 |
*** 3377,3383 ****
|
|
Karsten Hopp |
d5f5f3 |
/* trans_function_name() doesn't work well when skipping, use eval0()
|
|
Karsten Hopp |
d5f5f3 |
* instead to skip to any following command, e.g. for:
|
|
Karsten Hopp |
d5f5f3 |
* :if 0 | call dict.foo().bar() | endif */
|
|
Karsten Hopp |
d5f5f3 |
! eval0(eap->arg, &rettv, &eap->nextcmd, FALSE);
|
|
Karsten Hopp |
d5f5f3 |
return;
|
|
Karsten Hopp |
d5f5f3 |
}
|
|
Karsten Hopp |
d5f5f3 |
|
|
Karsten Hopp |
d5f5f3 |
--- 3377,3386 ----
|
|
Karsten Hopp |
d5f5f3 |
/* trans_function_name() doesn't work well when skipping, use eval0()
|
|
Karsten Hopp |
d5f5f3 |
* instead to skip to any following command, e.g. for:
|
|
Karsten Hopp |
d5f5f3 |
* :if 0 | call dict.foo().bar() | endif */
|
|
Karsten Hopp |
d5f5f3 |
! ++emsg_skip;
|
|
Karsten Hopp |
d5f5f3 |
! if (eval0(eap->arg, &rettv, &eap->nextcmd, FALSE) != FAIL)
|
|
Karsten Hopp |
d5f5f3 |
! clear_tv(&rettv);
|
|
Karsten Hopp |
d5f5f3 |
! --emsg_skip;
|
|
Karsten Hopp |
d5f5f3 |
return;
|
|
Karsten Hopp |
d5f5f3 |
}
|
|
Karsten Hopp |
d5f5f3 |
|
|
Karsten Hopp |
d5f5f3 |
*** ../vim-7.3.328/src/version.c 2011-09-30 17:46:14.000000000 +0200
|
|
Karsten Hopp |
d5f5f3 |
--- src/version.c 2011-09-30 18:32:27.000000000 +0200
|
|
Karsten Hopp |
d5f5f3 |
***************
|
|
Karsten Hopp |
d5f5f3 |
*** 711,712 ****
|
|
Karsten Hopp |
d5f5f3 |
--- 711,714 ----
|
|
Karsten Hopp |
d5f5f3 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
d5f5f3 |
+ /**/
|
|
Karsten Hopp |
d5f5f3 |
+ 329,
|
|
Karsten Hopp |
d5f5f3 |
/**/
|
|
Karsten Hopp |
d5f5f3 |
|
|
Karsten Hopp |
d5f5f3 |
--
|
|
Karsten Hopp |
d5f5f3 |
Have you heard about the new Beowulf cluster? It's so fast, it executes
|
|
Karsten Hopp |
d5f5f3 |
an infinite loop in 6 seconds.
|
|
Karsten Hopp |
d5f5f3 |
|
|
Karsten Hopp |
d5f5f3 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
d5f5f3 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
d5f5f3 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
d5f5f3 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|