diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-02-24 14:34:19 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-02-24 14:34:19 +0100 |
commit | f4d7f944baf3e6aaf8a17e9b6fae54e96d121be5 (patch) | |
tree | 0aef5f7b9ec4885df7d45d58c312236111752e0d /src/option.c | |
parent | 54c1b4965b6072352d84c41fb4101e8a2214cc6b (diff) | |
download | vim-git-f4d7f944baf3e6aaf8a17e9b6fae54e96d121be5.tar.gz |
updated for version 7.2.370v7.2.370
Problem: A redraw may cause folds to be closed.
Solution: Revert part of the previous patch. Add a test. (Lech Lorens)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index 99e94d5e0..ba17c1151 100644 --- a/src/option.c +++ b/src/option.c @@ -6586,7 +6586,11 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf, || *curwin->w_p_fdm == NUL) errmsg = e_invarg; else + { foldUpdateAll(curwin); + if (foldmethodIsDiff(curwin)) + newFoldLevel(); + } } # ifdef FEAT_EVAL /* 'foldexpr' */ |