mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
Fix tab complete of tree objects
Closes https://github.com/tpope/vim-fugitive/issues/1529
This commit is contained in:
@@ -1595,8 +1595,7 @@ function! fugitive#CompleteObject(base, ...) abort
|
||||
let parent = matchstr(a:base, '.*[:/]')
|
||||
let entries = s:LinesError(['ls-tree', substitute(parent, ':\zs\./', '\=subdir', '')], dir)[0]
|
||||
call map(entries,'s:sub(v:val,"^04.*\\zs$","/")')
|
||||
call map(entries,'tree.s:sub(v:val,".*\t","")')
|
||||
|
||||
call map(entries,'parent.s:sub(v:val,".*\t","")')
|
||||
endif
|
||||
return s:FilterEscape(entries, a:base)
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user