# HG changeset patch # User vimboss # Date 1257270432 0 # Node ID 613517f0b72a1600d58abeb8c44df9b3de1ac997 # Parent 75b3f9cc19da44ef65c962deb7a6049c305f49d4 updated for version 7.2-284 diff --git a/src/misc1.c b/src/misc1.c --- a/src/misc1.c +++ b/src/misc1.c @@ -2886,6 +2886,13 @@ changed_common(lnum, col, lnume, xtra) } #endif } + +#ifdef FEAT_FOLDING + /* Take care of side effects for setting w_topline when folds have + * changed. Esp. when the buffer was changed in another window. */ + if (hasAnyFolding(wp)) + set_topline(wp, wp->w_topline); +#endif } } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -677,6 +677,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 284, +/**/ 283, /**/ 282,