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

@@ -141,4 +141,10 @@ describe('completion', function()
June]])
end)
end)
it('disables folding during completion', function ()
execute("set foldmethod=indent")
feed('i<Tab>foo<CR><Tab>bar<Esc>ggA<C-x><C-l>')
eq(-1, eval('foldclosed(1)'))
end)
end)