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 | 9183ff37b423a299d2cc8dca88aae4fe27291b8f (patch) | |
tree | abefd60a5602a2bcbda165d700cf64e15c779d77 | |
parent | 696b91bd0650fb202b1d77c9c1307233780fec4d (diff) | |
download | vim-9183ff37b423a299d2cc8dca88aae4fe27291b8f.tar.gz |
Problem: ":mkview" uses ":normal" instead of ":normal!" for folds. (Dan)
Solution: Add the bang. (Christian Brabandt)
-rw-r--r-- | src/fold.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -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 d6e80e84..123d9357 100644 --- a/src/version.c +++ b/src/version.c @@ -720,6 +720,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 641, +/**/ 640, /**/ 639, |