Skip to content

Commit

Permalink
Fix completion on dir/<Tab>
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed May 28, 2017
1 parent 897de5e commit 2013b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/dispatch.vim
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ function! s:completion_filter(results, query) abort
endfunction

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

Expand Down

0 comments on commit 2013b5a

Please sign in to comment.