diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-08-29 15:22:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-08-29 15:22:25 +0200 |
commit | 002a4edc5b66c90245ca3eebc564635ed0af1ff1 (patch) | |
tree | b58587ae1d49329dbe39f321ca84ee8c6254c355 /src/fold.c | |
parent | 18a1b9bd5fa5925a2dc4b702b37ea0217fcb6ea3 (diff) | |
download | vim-git-002a4edc5b66c90245ca3eebc564635ed0af1ff1.tar.gz |
updated for version 7.3.641v7.3.641
Problem: ":mkview" uses ":normal" instead of ":normal!" for folds. (Dan)
Solution: Add the bang. (Christian Brabandt)
Diffstat (limited to 'src/fold.c')
-rw-r--r-- | src/fold.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |