Skip to content

Commit 2013b5a

Browse files
committed
Fix completion on dir/<Tab>
1 parent 897de5e commit 2013b5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dispatch.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ function! s:completion_filter(results, query) abort
441441
endfunction
442442

443443
function! s:file_complete(A) abort
444-
return map(split(glob(substitute(a:A, '\(.\@<=[\\/]\|$\)', '*\1', 'g')), "\n"),
444+
return map(split(glob(substitute(a:A, '.\@<=\ze[\\/]\|$', '*', 'g')), "\n"),
445445
\ 'isdirectory(v:val) ? v:val . dispatch#slash() : v:val')
446446
endfunction
447447

0 commit comments

Comments
 (0)