insert_enter: Update folds on insert-leave. #5351

Fixes failing test: 045_folding_spec.lua
References #5299
This commit is contained in:
Shougo Matsushita
2016-09-17 07:40:00 +09:00
committed by Justin M. Keyes
parent 19b47b043d
commit e1079c2a28
3 changed files with 6 additions and 5 deletions

View File

@@ -5924,6 +5924,9 @@ static void nv_replace(cmdarg_T *cap)
curwin->w_set_curswant = true;
set_last_insert(cap->nchar);
}
foldUpdateAll(curwin);
foldOpenCursor();
}
/*