Karsten Hopp 3cdf72
To: vim_dev@googlegroups.com
Karsten Hopp 3cdf72
Subject: Patch 7.3.641
Karsten Hopp 3cdf72
Fcc: outbox
Karsten Hopp 3cdf72
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 3cdf72
Mime-Version: 1.0
Karsten Hopp 3cdf72
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 3cdf72
Content-Transfer-Encoding: 8bit
Karsten Hopp 3cdf72
------------
Karsten Hopp 3cdf72
Karsten Hopp 3cdf72
Patch 7.3.641
Karsten Hopp 3cdf72
Problem:    ":mkview" uses ":normal" instead of ":normal!" for folds. (Dan)
Karsten Hopp 3cdf72
Solution:   Add the bang. (Christian Brabandt)
Karsten Hopp 3cdf72
Files:	    src/fold.c
Karsten Hopp 3cdf72
Karsten Hopp 3cdf72
Karsten Hopp 3cdf72
*** ../vim-7.3.640/src/fold.c	2012-08-08 18:01:00.000000000 +0200
Karsten Hopp 3cdf72
--- src/fold.c	2012-08-29 15:17:39.000000000 +0200
Karsten Hopp 3cdf72
***************
Karsten Hopp 3cdf72
*** 3373,3379 ****
Karsten Hopp 3cdf72
  		/* open nested folds while this fold is open */
Karsten Hopp 3cdf72
  		if (fprintf(fd, "%ld", fp->fd_top + off) < 0
Karsten Hopp 3cdf72
  			|| put_eol(fd) == FAIL
Karsten Hopp 3cdf72
! 			|| put_line(fd, "normal zo") == FAIL)
Karsten Hopp 3cdf72
  		    return FAIL;
Karsten Hopp 3cdf72
  		if (put_foldopen_recurse(fd, wp, &fp->fd_nested,
Karsten Hopp 3cdf72
  							     off + fp->fd_top)
Karsten Hopp 3cdf72
--- 3373,3379 ----
Karsten Hopp 3cdf72
  		/* open nested folds while this fold is open */
Karsten Hopp 3cdf72
  		if (fprintf(fd, "%ld", fp->fd_top + off) < 0
Karsten Hopp 3cdf72
  			|| put_eol(fd) == FAIL
Karsten Hopp 3cdf72
! 			|| put_line(fd, "normal! zo") == FAIL)
Karsten Hopp 3cdf72
  		    return FAIL;
Karsten Hopp 3cdf72
  		if (put_foldopen_recurse(fd, wp, &fp->fd_nested,
Karsten Hopp 3cdf72
  							     off + fp->fd_top)
Karsten Hopp 3cdf72
***************
Karsten Hopp 3cdf72
*** 3417,3423 ****
Karsten Hopp 3cdf72
  {
Karsten Hopp 3cdf72
      if (fprintf(fd, "%ld", fp->fd_top + off) < 0
Karsten Hopp 3cdf72
  	    || put_eol(fd) == FAIL
Karsten Hopp 3cdf72
! 	    || fprintf(fd, "normal z%c",
Karsten Hopp 3cdf72
  			   fp->fd_flags == FD_CLOSED ? 'c' : 'o') < 0
Karsten Hopp 3cdf72
  	    || put_eol(fd) == FAIL)
Karsten Hopp 3cdf72
  	return FAIL;
Karsten Hopp 3cdf72
--- 3417,3423 ----
Karsten Hopp 3cdf72
  {
Karsten Hopp 3cdf72
      if (fprintf(fd, "%ld", fp->fd_top + off) < 0
Karsten Hopp 3cdf72
  	    || put_eol(fd) == FAIL
Karsten Hopp 3cdf72
! 	    || fprintf(fd, "normal! z%c",
Karsten Hopp 3cdf72
  			   fp->fd_flags == FD_CLOSED ? 'c' : 'o') < 0
Karsten Hopp 3cdf72
  	    || put_eol(fd) == FAIL)
Karsten Hopp 3cdf72
  	return FAIL;
Karsten Hopp 3cdf72
*** ../vim-7.3.640/src/version.c	2012-08-29 14:23:06.000000000 +0200
Karsten Hopp 3cdf72
--- src/version.c	2012-08-29 15:18:26.000000000 +0200
Karsten Hopp 3cdf72
***************
Karsten Hopp 3cdf72
*** 721,722 ****
Karsten Hopp 3cdf72
--- 721,724 ----
Karsten Hopp 3cdf72
  {   /* Add new patch number below this line */
Karsten Hopp 3cdf72
+ /**/
Karsten Hopp 3cdf72
+     641,
Karsten Hopp 3cdf72
  /**/
Karsten Hopp 3cdf72
Karsten Hopp 3cdf72
-- 
Karsten Hopp 3cdf72
You cannot propel yourself forward by patting yourself on the back.
Karsten Hopp 3cdf72
Karsten Hopp 3cdf72
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 3cdf72
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 3cdf72
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 3cdf72
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///