1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2010-02-24 14:34:19 +01:00
parent 54c1b4965b
commit f4d7f944ba
6 changed files with 29 additions and 21 deletions

View File

@@ -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' */