Mercurial > vim
comparison src/fold.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 | 8a0a8f10b43e |
children | 5a97d0c03b59 |
comparison
equal
deleted
inserted
replaced
2085:5a84b6388a55 | 2086:c11845a465ae |
---|---|
852 (void)foldFind(&curwin->w_folds, top, &fp); | 852 (void)foldFind(&curwin->w_folds, top, &fp); |
853 while (fp < (fold_T *)curwin->w_folds.ga_data + curwin->w_folds.ga_len | 853 while (fp < (fold_T *)curwin->w_folds.ga_data + curwin->w_folds.ga_len |
854 && fp->fd_top < bot) | 854 && fp->fd_top < bot) |
855 { | 855 { |
856 fp->fd_small = MAYBE; | 856 fp->fd_small = MAYBE; |
857 | |
858 /* Not sure if this is the right place to reset fd_flags (suggested by | |
859 * Lech Lorens). */ | |
860 if (wp->w_foldinvalid) | |
861 fp->fd_flags = FD_LEVEL; | |
862 | |
863 ++fp; | 857 ++fp; |
864 } | 858 } |
865 | 859 |
866 if (foldmethodIsIndent(wp) | 860 if (foldmethodIsIndent(wp) |
867 || foldmethodIsExpr(wp) | 861 || foldmethodIsExpr(wp) |