aboutsummaryrefslogtreecommitdiff
path: root/test/functional/viml/completion_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-03-09 10:15:01 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-03-09 10:15:01 -0500
commitde33c9f00544485ebe34c0af94693a4c97053392 (patch)
tree5323b717ad1f3ee7865f974514444e4ce74dab36 /test/functional/viml/completion_spec.lua
parenta40a4e2431ccae5f2855df1ffdbf1c94de681886 (diff)
parent0b468fd0cf2801c5fbca0bc17b51d6e9e5499db1 (diff)
downloadrneovim-de33c9f00544485ebe34c0af94693a4c97053392.tar.gz
rneovim-de33c9f00544485ebe34c0af94693a4c97053392.tar.bz2
rneovim-de33c9f00544485ebe34c0af94693a4c97053392.zip
Merge pull request #4409 from nhooyr/master
complete: disable folding when completing
Diffstat (limited to 'test/functional/viml/completion_spec.lua')
-rw-r--r--test/functional/viml/completion_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/viml/completion_spec.lua b/test/functional/viml/completion_spec.lua
index 4bb9707cda..45dbbdb7c7 100644
--- a/test/functional/viml/completion_spec.lua
+++ b/test/functional/viml/completion_spec.lua
@@ -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)