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