diff options
author | watiko <service@mail.watiko.net> | 2016-02-05 12:07:46 +0900 |
---|---|---|
committer | watiko <service@mail.watiko.net> | 2016-02-05 12:21:14 +0900 |
commit | 69e448d1d871c648bd1fc0c6067803bdc06c3e5b (patch) | |
tree | 7afefa391e85fa4f77fdf2d697d2eb4a2dfa2de9 /src/nvim/fold.c | |
parent | 863e1c91a6e4daff46cbe976b89e9423ad9bcd04 (diff) | |
download | rneovim-69e448d1d871c648bd1fc0c6067803bdc06c3e5b.tar.gz rneovim-69e448d1d871c648bd1fc0c6067803bdc06c3e5b.tar.bz2 rneovim-69e448d1d871c648bd1fc0c6067803bdc06c3e5b.zip |
vim-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)
https://github.com/vim/vim/commit/d5f6933d5c57ea6f79bbdeab6c426cf66a393f33
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r-- | src/nvim/fold.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c index 2e32e78062..6c135ef47b 100644 --- a/src/nvim/fold.c +++ b/src/nvim/fold.c @@ -767,9 +767,9 @@ void foldUpdate(win_T *wp, linenr_T top, linenr_T bot) return; } - /* 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 + // Mark all folds from top to bot as maybe-small. + (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; ++fp; |