summaryrefslogtreecommitdiffstats
path: root/src/fold.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-04-15 12:43:50 +0200
committerBram Moolenaar <Bram@vim.org>2015-04-15 12:43:50 +0200
commitd5f6933d5c57ea6f79bbdeab6c426cf66a393f33 (patch)
treea195ad8661e0cd1ae02670e2365ff77ea64894c6 /src/fold.c
parent05b20fb14ec3219d73014595cfb6cc28ae1e1fc3 (diff)
patch 7.4.700v7.4.700
Problem: Fold can't be opened after ":move". (Ein Brown) Solution: Delete the folding information and update it afterwards. (Christian Brabandt)
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fold.c b/src/fold.c
index 671bbf75a1..21e455bb19 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -847,8 +847,8 @@ foldUpdate(wp, top, bot)
fold_T *fp;
/* Mark all folds from top to bot as maybe-small. */
- (void)foldFind(&curwin->w_folds, top, &fp);
- while (fp < (fold_T *)curwin->w_folds.ga_data + curwin->w_folds.ga_len
+ (void)foldFind(&wp->w_folds, top, &fp);
+ while (fp < (fold_T *)wp->w_folds.ga_data + wp->w_folds.ga_len
&& fp->fd_top < bot)
{
fp->fd_small = MAYBE;