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

Closes #5270
This commit is contained in:
Shougo authored and Justin M. Keyes committed 2016-09-16 01:19:36 +02:00
1 parent 0c536b5d8a
commit 6e9f329d05
1 file changed
+1 -1
+1 -1
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;
}