Fix :Tags command tagfile relative path

Since fzf will execute the source command in the tagfile's directory, we
can't give the path of the tagfile relative to the current working
directory. Instead give just the filename.
This commit is contained in:
Andrew Noyes 2015-09-16 22:43:33 -07:00
parent 22c8a706c2
commit 514683efad

View file

@ -437,7 +437,7 @@ function! fzf#vim#tags(...)
let copt = '--ansi '
endif
call s:fzf({
\ 'source': proc.shellescape(tagfile),
\ 'source': proc.shellescape(fnamemodify(tagfile, ':t')),
\ 'dir': fnamemodify(tagfile, ':h'),
\ 'options': copt.'+m --tiebreak=begin --prompt "Tags> "'.s:expect(),
\ 'sink*': function('s:tags_sink')}, a:000)