complete: disable folding when completing

Fixes vim/vim#643
This commit is contained in:
Anmol Sethi
2016-03-04 15:06:48 -05:00
parent 890ce792af
commit 0b468fd0cf
4 changed files with 14 additions and 4 deletions

View File

@@ -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;