commit | f4d7f944baf3e6aaf8a17e9b6fae54e96d121be5 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Feb 24 14:34:19 2010 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Feb 24 14:34:19 2010 +0100 |
tree | 0aef5f7b9ec4885df7d45d58c312236111752e0d | |
parent | 54c1b4965b6072352d84c41fb4101e8a2214cc6b [diff] [blame] |
updated for version 7.2.370 Problem: A redraw may cause folds to be closed. Solution: Revert part of the previous patch. Add a test. (Lech Lorens)
diff --git a/src/option.c b/src/option.c index 99e94d5..ba17c11 100644 --- a/src/option.c +++ b/src/option.c
@@ -6586,7 +6586,11 @@ || *curwin->w_p_fdm == NUL) errmsg = e_invarg; else + { foldUpdateAll(curwin); + if (foldmethodIsDiff(curwin)) + newFoldLevel(); + } } # ifdef FEAT_EVAL /* 'foldexpr' */