aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-02-07 01:33:01 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-02-07 01:33:01 -0500
commit827e267800417b8fdd1340d54f5dc5fa9d81bb92 (patch)
treed9b03388ce0f9596d20e23b824d4a0385fd4a443 /src/nvim/fold.c
parentcc520602458c693645a9d2ad75fcf7796bc38e0c (diff)
parent3cf8ad6f48da3239619e95a52017b1a191789c2a (diff)
downloadrneovim-827e267800417b8fdd1340d54f5dc5fa9d81bb92.tar.gz
rneovim-827e267800417b8fdd1340d54f5dc5fa9d81bb92.tar.bz2
rneovim-827e267800417b8fdd1340d54f5dc5fa9d81bb92.zip
Merge pull request #4175 from watiko/vim-7.4.700
vim-patch:7.4.700
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r--src/nvim/fold.c6
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;