From d5f6933d5c57ea6f79bbdeab6c426cf66a393f33 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 15 Apr 2015 12:43:50 +0200 Subject: patch 7.4.700 Problem: Fold can't be opened after ":move". (Ein Brown) Solution: Delete the folding information and update it afterwards. (Christian Brabandt) --- src/fold.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fold.c') 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; -- cgit v1.2.3