comparison src/option.c @ 2086:c11845a465ae v7.2.370

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)
author Bram Moolenaar <bram@zimbu.org>
date Wed, 24 Feb 2010 14:34:19 +0100
parents 5bedef935ce3
children 7aee5e68548a
comparison
equal deleted inserted replaced
2085:5a84b6388a55 2086:c11845a465ae
6584 { 6584 {
6585 if (check_opt_strings(*varp, p_fdm_values, FALSE) != OK 6585 if (check_opt_strings(*varp, p_fdm_values, FALSE) != OK
6586 || *curwin->w_p_fdm == NUL) 6586 || *curwin->w_p_fdm == NUL)
6587 errmsg = e_invarg; 6587 errmsg = e_invarg;
6588 else 6588 else
6589 {
6589 foldUpdateAll(curwin); 6590 foldUpdateAll(curwin);
6591 if (foldmethodIsDiff(curwin))
6592 newFoldLevel();
6593 }
6590 } 6594 }
6591 # ifdef FEAT_EVAL 6595 # ifdef FEAT_EVAL
6592 /* 'foldexpr' */ 6596 /* 'foldexpr' */
6593 else if (varp == &curwin->w_p_fde) 6597 else if (varp == &curwin->w_p_fde)
6594 { 6598 {