summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.3.641
blob: daacdb4ffa95bf9d02b7ea273cb40db5a09529c2 (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
To: vim_dev@googlegroups.com
Subject: Patch 7.3.641
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.641
Problem:    ":mkview" uses ":normal" instead of ":normal!" for folds. (Dan)
Solution:   Add the bang. (Christian Brabandt)
Files:	    src/fold.c


*** ../vim-7.3.640/src/fold.c	2012-08-08 18:01:00.000000000 +0200
--- src/fold.c	2012-08-29 15:17:39.000000000 +0200
***************
*** 3373,3379 ****
  		/* open nested folds while this fold is open */
  		if (fprintf(fd, "%ld", fp->fd_top + off) < 0
  			|| put_eol(fd) == FAIL
! 			|| put_line(fd, "normal zo") == FAIL)
  		    return FAIL;
  		if (put_foldopen_recurse(fd, wp, &fp->fd_nested,
  							     off + fp->fd_top)
--- 3373,3379 ----
  		/* open nested folds while this fold is open */
  		if (fprintf(fd, "%ld", fp->fd_top + off) < 0
  			|| put_eol(fd) == FAIL
! 			|| put_line(fd, "normal! zo") == FAIL)
  		    return FAIL;
  		if (put_foldopen_recurse(fd, wp, &fp->fd_nested,
  							     off + fp->fd_top)
***************
*** 3417,3423 ****
  {
      if (fprintf(fd, "%ld", fp->fd_top + off) < 0
  	    || put_eol(fd) == FAIL
! 	    || fprintf(fd, "normal z%c",
  			   fp->fd_flags == FD_CLOSED ? 'c' : 'o') < 0
  	    || put_eol(fd) == FAIL)
  	return FAIL;
--- 3417,3423 ----
  {
      if (fprintf(fd, "%ld", fp->fd_top + off) < 0
  	    || put_eol(fd) == FAIL
! 	    || fprintf(fd, "normal! z%c",
  			   fp->fd_flags == FD_CLOSED ? 'c' : 'o') < 0
  	    || put_eol(fd) == FAIL)
  	return FAIL;
*** ../vim-7.3.640/src/version.c	2012-08-29 14:23:06.000000000 +0200
--- src/version.c	2012-08-29 15:18:26.000000000 +0200
***************
*** 721,722 ****
--- 721,724 ----
  {   /* Add new patch number below this line */
+ /**/
+     641,
  /**/

-- 
You cannot propel yourself forward by patting yourself on the back.

 /// 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    ///