aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui
diff options
context:
space:
mode:
authorDongdong Zhou <dzhou121@gmail.com>2017-06-26 15:27:49 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2017-10-26 09:35:13 +0200
commitfb389a6b4b1e6fedb559dc2e5845dd138e8ff264 (patch)
tree0b42281f09b38cdb952677761622d76f7e7a4cd7 /test/functional/ui
parent461ae698242458bffbf5fb68de89fe8b2a3defd2 (diff)
downloadrneovim-fb389a6b4b1e6fedb559dc2e5845dd138e8ff264.tar.gz
rneovim-fb389a6b4b1e6fedb559dc2e5845dd138e8ff264.tar.bz2
rneovim-fb389a6b4b1e6fedb559dc2e5845dd138e8ff264.zip
ext_cmdline: added indent
Diffstat (limited to 'test/functional/ui')
-rw-r--r--test/functional/ui/cmdline_spec.lua17
1 files changed, 15 insertions, 2 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua
index 9e2857bc95..1e30ba1449 100644
--- a/test/functional/ui/cmdline_spec.lua
+++ b/test/functional/ui/cmdline_spec.lua
@@ -7,7 +7,7 @@ if helpers.pending_win32(pending) then return end
describe('External command line completion', function()
local screen
local shown = false
- local firstc, prompt, content, pos, char, shift, level, current_hide_level, in_function
+ local firstc, prompt, content, pos, char, shift, indent, level, current_hide_level, in_function
before_each(function()
clear()
@@ -19,7 +19,7 @@ describe('External command line completion', function()
current_hide_level = data[1]
elseif name == "cmdline_show" then
shown = true
- content, pos, firstc, prompt, level = unpack(data)
+ content, pos, firstc, prompt, indent, level = unpack(data)
elseif name == "cmdline_char" then
char, shift = unpack(data)
elseif name == "cmdline_pos" then
@@ -171,6 +171,7 @@ describe('External command line completion', function()
|
]], nil, nil, function()
eq(true, in_function)
+ eq(2, indent)
end)
feed('line1<cr>')
@@ -182,6 +183,7 @@ describe('External command line completion', function()
|
]], nil, nil, function()
eq(true, in_function)
+ eq(2, indent)
end)
feed('endfunction<cr>')
@@ -195,6 +197,17 @@ describe('External command line completion', function()
eq(false, in_function)
end)
+ feed(':sign<c-f>')
+ screen:expect([[
+ |
+ [No Name] |
+ :sign^ |
+ [Command Line] |
+ |
+ ]], nil, nil, function()
+ eq(false, in_function)
+ end)
+
end)
end)
end)