mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
Allow escaped characters in tab complete
Resolves: https://github.com/tpope/vim-fugitive/issues/1859
This commit is contained in:
@@ -2288,8 +2288,9 @@ function! s:FilterEscape(items, ...) abort
|
||||
let items = copy(a:items)
|
||||
call map(items, 's:fnameescape(v:val)')
|
||||
if a:0 && type(a:1) == type('')
|
||||
let match = fnameescape(a:1)
|
||||
let cmp = s:FileIgnoreCase(1) ? '==?' : '==#'
|
||||
call filter(items, 'strpart(v:val, 0, strlen(a:1)) ' . cmp . ' a:1')
|
||||
call filter(items, 'strpart(v:val, 0, strlen(match)) ' . cmp . ' match')
|
||||
endif
|
||||
return items
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user