aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.c
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-09-17 07:40:00 +0900
committerJustin M. Keyes <justinkz@gmail.com>2016-09-18 13:40:50 +0200
commite1079c2a289de18923950338ea08ee80c01cc6cf (patch)
treefb12eb431b1377b7c6d94d2ed0124e0266378d9a /src/nvim/fold.c
parent19b47b043de2628d7ace4d65aaf124b225ed7351 (diff)
downloadrneovim-e1079c2a289de18923950338ea08ee80c01cc6cf.tar.gz
rneovim-e1079c2a289de18923950338ea08ee80c01cc6cf.tar.bz2
rneovim-e1079c2a289de18923950338ea08ee80c01cc6cf.zip
insert_enter: Update folds on insert-leave. #5351
Fixes failing test: 045_folding_spec.lua References #5299
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r--src/nvim/fold.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index a92ee86248..70030b8525 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -765,12 +765,8 @@ void foldUpdate(win_T *wp, linenr_T top, linenr_T bot)
return;
}
- fold_T *fp;
- if (wp->w_buffer->terminal) {
- return;
- }
-
// Mark all folds from top to bot as maybe-small.
+ fold_T *fp;
(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) {