From: Bram Moolenaar Date: Wed, 29 Aug 2012 13:22:25 +0000 (+0200) Subject: updated for version 7.3.641 X-Git-Tag: v7.3.641 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=002a4edc5b66c90245ca3eebc564635ed0af1ff1;p=vim updated for version 7.3.641 Problem: ":mkview" uses ":normal" instead of ":normal!" for folds. (Dan) Solution: Add the bang. (Christian Brabandt) --- diff --git a/src/fold.c b/src/fold.c index f8d9c1d7c..97e4ebc3d 100644 --- a/src/fold.c +++ b/src/fold.c @@ -3373,7 +3373,7 @@ put_foldopen_recurse(fd, wp, gap, off) /* 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) + || put_line(fd, "normal! zo") == FAIL) return FAIL; if (put_foldopen_recurse(fd, wp, &fp->fd_nested, off + fp->fd_top) @@ -3417,7 +3417,7 @@ put_fold_open_close(fd, fp, off) { if (fprintf(fd, "%ld", fp->fd_top + off) < 0 || put_eol(fd) == FAIL - || fprintf(fd, "normal z%c", + || fprintf(fd, "normal! z%c", fp->fd_flags == FD_CLOSED ? 'c' : 'o') < 0 || put_eol(fd) == FAIL) return FAIL; diff --git a/src/version.c b/src/version.c index d6e80e84e..123d93576 100644 --- a/src/version.c +++ b/src/version.c @@ -719,6 +719,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 641, /**/ 640, /**/