1
0
forked from aniani/vim

updated for version 7.3.641

Problem:    ":mkview" uses ":normal" instead of ":normal!" for folds. (Dan)
Solution:   Add the bang. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2012-08-29 15:22:25 +02:00
parent 18a1b9bd5f
commit 002a4edc5b
2 changed files with 4 additions and 2 deletions

View File

@@ -3373,7 +3373,7 @@ put_foldopen_recurse(fd, wp, gap, off)
/* open nested folds while this fold is open */ /* open nested folds while this fold is open */
if (fprintf(fd, "%ld", fp->fd_top + off) < 0 if (fprintf(fd, "%ld", fp->fd_top + off) < 0
|| put_eol(fd) == FAIL || put_eol(fd) == FAIL
|| put_line(fd, "normal zo") == FAIL) || put_line(fd, "normal! zo") == FAIL)
return FAIL; return FAIL;
if (put_foldopen_recurse(fd, wp, &fp->fd_nested, if (put_foldopen_recurse(fd, wp, &fp->fd_nested,
off + fp->fd_top) off + fp->fd_top)
@@ -3417,7 +3417,7 @@ put_fold_open_close(fd, fp, off)
{ {
if (fprintf(fd, "%ld", fp->fd_top + off) < 0 if (fprintf(fd, "%ld", fp->fd_top + off) < 0
|| put_eol(fd) == FAIL || put_eol(fd) == FAIL
|| fprintf(fd, "normal z%c", || fprintf(fd, "normal! z%c",
fp->fd_flags == FD_CLOSED ? 'c' : 'o') < 0 fp->fd_flags == FD_CLOSED ? 'c' : 'o') < 0
|| put_eol(fd) == FAIL) || put_eol(fd) == FAIL)
return FAIL; return FAIL;

View File

@@ -719,6 +719,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
641,
/**/ /**/
640, 640,
/**/ /**/