diff options
| author | Bram Moolenaar <Bram@vim.org> | 2016-04-14 16:22:04 +0200 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2016-04-14 16:22:04 +0200 |
| commit | 429fcfbf9a9275367fe9441a50a3dcd773497d84 (patch) | |
| tree | 60edefaa455e444f1dbc6f0e38cb7b0d80dd965e /src/edit.c | |
| parent | 8110a091bc749d8748a20807a724a3af3ca6d509 (diff) | |
| download | vim-git-429fcfbf9a9275367fe9441a50a3dcd773497d84.tar.gz | |
patch 7.4.1732v7.4.1732
Problem: Folds may close when using autocomplete. (Anmol Sethi)
Solution: Increment/decrement disable_fold. (Christian Brabandt, closes
#643)
Diffstat (limited to 'src/edit.c')
| -rw-r--r-- | src/edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c index abe26fbb6..f4a835485 100644 --- a/src/edit.c +++ b/src/edit.c @@ -1424,8 +1424,10 @@ doESCkey: docomplete: compl_busy = TRUE; + disable_fold_update++; /* don't redraw folds here */ if (ins_complete(c, TRUE) == FAIL) compl_cont_status = 0; + disable_fold_update--; compl_busy = FALSE; break; #endif /* FEAT_INS_EXPAND */ |
