mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 03:45:42 +00:00
Add test for vim-patch 7.4.672
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
local helpers = require('test.functional.helpers')
|
local helpers = require('test.functional.helpers')
|
||||||
local Screen = require('test.functional.ui.screen')
|
local Screen = require('test.functional.ui.screen')
|
||||||
local clear, feed, execute = helpers.clear, helpers.feed, helpers.execute
|
local clear, feed, execute = helpers.clear, helpers.feed, helpers.execute
|
||||||
|
local funcs = helpers.funcs
|
||||||
|
|
||||||
describe("'wildmode'", function()
|
describe("'wildmode'", function()
|
||||||
local screen
|
local screen
|
||||||
@@ -30,3 +31,34 @@ describe("'wildmode'", function()
|
|||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
describe('command line completion', function()
|
||||||
|
local screen
|
||||||
|
|
||||||
|
before_each(function()
|
||||||
|
clear()
|
||||||
|
screen = Screen.new(40, 5)
|
||||||
|
screen:attach()
|
||||||
|
screen:set_default_attr_ignore({{bold=true, foreground=Screen.colors.Blue}})
|
||||||
|
end)
|
||||||
|
|
||||||
|
after_each(function()
|
||||||
|
os.remove('Xtest-functional-viml-compl-dir')
|
||||||
|
end)
|
||||||
|
|
||||||
|
it('lists directories with empty PATH', function()
|
||||||
|
local tmp = funcs.tempname()
|
||||||
|
execute('e '.. tmp)
|
||||||
|
execute('cd %:h')
|
||||||
|
execute("call mkdir('Xtest-functional-viml-compl-dir')")
|
||||||
|
execute('let $PATH=""')
|
||||||
|
feed(':!<tab><bs>')
|
||||||
|
screen:expect([[
|
||||||
|
|
|
||||||
|
~ |
|
||||||
|
~ |
|
||||||
|
~ |
|
||||||
|
:!Xtest-functional-viml-compl-dir^ |
|
||||||
|
]])
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
local helpers = require('test.functional.helpers')
|
local helpers = require('test.functional.helpers')
|
||||||
local Screen = require('test.functional.ui.screen')
|
local Screen = require('test.functional.ui.screen')
|
||||||
local clear, feed = helpers.clear, helpers.feed
|
local clear, feed = helpers.clear, helpers.feed
|
||||||
@@ -716,4 +715,3 @@ describe('completion', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user