aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShougo <Shougo.Matsu@gmail.com>2016-09-16 08:19:36 +0900
committerJustin M. Keyes <justinkz@gmail.com>2016-09-16 01:19:36 +0200
commit6e9f329d051cf6bf6d83dbe5335f86a1752ec45a (patch)
tree983a55170c03e19d98cc11ff9444248965556497
parent0c536b5d8afee9f8d06e1d0dc875af61f7d04707 (diff)
downloadrneovim-6e9f329d051cf6bf6d83dbe5335f86a1752ec45a.tar.gz
rneovim-6e9f329d051cf6bf6d83dbe5335f86a1752ec45a.tar.bz2
rneovim-6e9f329d051cf6bf6d83dbe5335f86a1752ec45a.zip
perf: Skip foldUpdate() in insert-mode. #5299
Closes #5270
-rw-r--r--src/nvim/fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index 6ddcbcb13f..a92ee86248 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -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;
}