diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-04-15 12:43:50 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-04-15 12:43:50 +0200 |
commit | d5f6933d5c57ea6f79bbdeab6c426cf66a393f33 (patch) | |
tree | a195ad8661e0cd1ae02670e2365ff77ea64894c6 /src/fold.c | |
parent | 05b20fb14ec3219d73014595cfb6cc28ae1e1fc3 (diff) | |
download | vim-git-d5f6933d5c57ea6f79bbdeab6c426cf66a393f33.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fold.c b/src/fold.c index 671bbf75a..21e455bb1 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; |