summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2007-08-21 13:29:28 +0000
committervimboss <devnull@localhost>2007-08-21 13:29:28 +0000
commitd0fdfed2fa204397280d68b2ce325096956ba26e (patch)
tree7952a6d670f07bdc59936c08889d5cf1b3a12507
parent6fe65dfbcc8632d26f62b9e32c7694a8e279cb1b (diff)
downloadvim-d0fdfed2fa204397280d68b2ce325096956ba26e.tar.gz
updated for version 7.1-085v7.1.085v7-1-085
-rw-r--r--src/ex_cmds.c17
-rw-r--r--src/version.c2
2 files changed, 16 insertions, 3 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 1b2672fd..958f3abd 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -2974,7 +2974,7 @@ check_readonly(forceit, buf)
* 'fnum' is the number of the file, if zero use ffname/sfname.
*
* Return 1 for "normal" error, 2 for "not written" error, 0 for success
- * -1 for succesfully opening another file.
+ * -1 for successfully opening another file.
* 'lnum' is the line number for the cursor in the new file (if non-zero).
*/
int
@@ -3584,9 +3584,20 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags)
curwin_init();
#ifdef FEAT_FOLDING
- /* It's like all lines in the buffer changed. Need to update
- * automatic folding. */
+ /* It's possible that all lines in the buffer changed. Need to update
+ * automatic folding for all windows where it's used. */
+# ifdef FEAT_WINDOWS
+ {
+ win_T *win;
+ tabpage_T *tp;
+
+ FOR_ALL_TAB_WINDOWS(tp, win)
+ if (win->w_buffer == curbuf)
+ foldUpdateAll(win);
+ }
+# else
foldUpdateAll(curwin);
+# endif
#endif
/* Change directories when the 'acd' option is set. */
diff --git a/src/version.c b/src/version.c
index 2b04ff43..21f7237e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 85,
+/**/
84,
/**/
83,