perf: Skip foldUpdate() in insert-mode. #5299

Closes #5270
This commit is contained in:
Shougo 2016-09-16 08:19:36 +09:00 committed by Justin M. Keyes
parent 0c536b5d8a
commit 6e9f329d05

View File

@ -761,7 +761,7 @@ void clearFolding(win_T *win)
*/
void foldUpdate(win_T *wp, linenr_T top, linenr_T bot)
{
if (compl_busy) {
if (compl_busy || State & INSERT) {
return;
}