summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.3.329
blob: fe48eb52d8f1b385a212c9a2f895b5fc03b9b958 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
To: vim_dev@googlegroups.com
Subject: Patch 7.3.329
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.329
Problem:    When skipping over code from ":for" to ":endfor" get an error for
	    calling a dict function. (Yasuhiro Matsumoto)
Solution:   Ignore errors when skipping over :call command.
Files:	    src/ex_docmd.c, src/eval.c


*** ../vim-7.3.328/src/ex_docmd.c	2011-09-21 19:10:42.000000000 +0200
--- src/ex_docmd.c	2011-09-30 17:59:51.000000000 +0200
***************
*** 371,381 ****
  # define ex_endif		ex_ni
  # define ex_else		ex_ni
  # define ex_while		ex_ni
- # define ex_for			ex_ni
  # define ex_continue		ex_ni
  # define ex_break		ex_ni
  # define ex_endwhile		ex_ni
- # define ex_endfor		ex_ni
  # define ex_throw		ex_ni
  # define ex_try			ex_ni
  # define ex_catch		ex_ni
--- 371,379 ----
*** ../vim-7.3.328/src/eval.c	2011-09-30 16:39:41.000000000 +0200
--- src/eval.c	2011-09-30 18:29:58.000000000 +0200
***************
*** 3377,3383 ****
  	/* trans_function_name() doesn't work well when skipping, use eval0()
  	 * instead to skip to any following command, e.g. for:
  	 *   :if 0 | call dict.foo().bar() | endif  */
! 	eval0(eap->arg, &rettv, &eap->nextcmd, FALSE);
  	return;
      }
  
--- 3377,3386 ----
  	/* trans_function_name() doesn't work well when skipping, use eval0()
  	 * instead to skip to any following command, e.g. for:
  	 *   :if 0 | call dict.foo().bar() | endif  */
! 	++emsg_skip;
! 	if (eval0(eap->arg, &rettv, &eap->nextcmd, FALSE) != FAIL)
! 	    clear_tv(&rettv);
! 	--emsg_skip;
  	return;
      }
  
*** ../vim-7.3.328/src/version.c	2011-09-30 17:46:14.000000000 +0200
--- src/version.c	2011-09-30 18:32:27.000000000 +0200
***************
*** 711,712 ****
--- 711,714 ----
  {   /* Add new patch number below this line */
+ /**/
+     329,
  /**/

-- 
Have you heard about the new Beowulf cluster? It's so fast, it executes
an infinite loop in 6 seconds.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///