aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.c
diff options
context:
space:
mode:
authorAnmol Sethi <anmol@aubble.com>2016-03-04 15:06:48 -0500
committerAnmol Sethi <anmol@aubble.com>2016-03-09 10:04:15 -0500
commit0b468fd0cf2801c5fbca0bc17b51d6e9e5499db1 (patch)
tree58d75a91fdaaab43e989c41614eb32ed4944313d /src/nvim/fold.c
parent890ce792af102abe37f24f9674b5924b79fbfa27 (diff)
downloadrneovim-0b468fd0cf2801c5fbca0bc17b51d6e9e5499db1.tar.gz
rneovim-0b468fd0cf2801c5fbca0bc17b51d6e9e5499db1.tar.bz2
rneovim-0b468fd0cf2801c5fbca0bc17b51d6e9e5499db1.zip
complete: disable folding when completing
Fixes vim/vim#643
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r--src/nvim/fold.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index 6c135ef47b..70ab4ced75 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -762,6 +762,10 @@ void clearFolding(win_T *win)
*/
void foldUpdate(win_T *wp, linenr_T top, linenr_T bot)
{
+ if (compl_busy) {
+ return;
+ }
+
fold_T *fp;
if (wp->w_buffer->terminal) {
return;