forked from aniani/vim
patch 9.0.1231: completion of :runtime does not handle {where} argument
Problem: Completion of :runtime does not handle {where} argument.
Solution: Parse the {where} argument. (closes #11863)
This commit is contained in:
@@ -553,15 +553,6 @@ func Test_getcompletion()
|
||||
call assert_true(index(l, '<buffer>') >= 0)
|
||||
let l = getcompletion('not', 'mapclear')
|
||||
call assert_equal([], l)
|
||||
|
||||
let l = getcompletion('', 'runtime')
|
||||
call assert_true(index(l, 'defaults.vim') >= 0)
|
||||
let l = getcompletion('synt', 'runtime')
|
||||
call assert_true(index(l, 'syntax') >= 0)
|
||||
let l = getcompletion('syntax/vi', 'runtime')
|
||||
call assert_true(index(l, 'syntax/vim.vim') >= 0)
|
||||
let l = getcompletion('notexitsts', 'runtime')
|
||||
call assert_equal([], l)
|
||||
|
||||
let l = getcompletion('.', 'shellcmd')
|
||||
call assert_equal(['./', '../'], filter(l, 'v:val =~ "\\./"'))
|
||||
|
||||
Reference in New Issue
Block a user