]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.641 v7.3.641
authorBram Moolenaar <Bram@vim.org>
Wed, 29 Aug 2012 13:22:25 +0000 (15:22 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 29 Aug 2012 13:22:25 +0000 (15:22 +0200)
Problem:    ":mkview" uses ":normal" instead of ":normal!" for folds. (Dan)
Solution:   Add the bang. (Christian Brabandt)

src/fold.c
src/version.c

index f8d9c1d7c434174a5c5c0a58e9d8c2ecb8077198..97e4ebc3d4b178c848773876b5b7791d62a95e25 100644 (file)
@@ -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;
index d6e80e84e52e40f56349b909a6df75eee4bcae4d..123d935769e3798fd9410b5fba557f81c9099991 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    641,
 /**/
     640,
 /**/