summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2009-11-03 17:47:12 +0000
committervimboss <devnull@localhost>2009-11-03 17:47:12 +0000
commite93c02fbbc2b7ac7fcfa0e6c93257fd64c385337 (patch)
tree5fcf830810ab91b328f75bde7eb21754f12332c7
parent7265da3c262076c970956cde581d838af7c7c52b (diff)
downloadvim-e93c02fbbc2b7ac7fcfa0e6c93257fd64c385337.tar.gz
updated for version 7.2-284v7.2.284v7-2-284
-rw-r--r--src/misc1.c7
-rw-r--r--src/version.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 23a1c1e4..bb15d429 100644
--- 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
index 83af0958..8a71cbe3 100644
--- 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,