mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-10-08 21:15:19 +08:00
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:
1 parent
22c8a706c2
commit
514683efad
1 file changed
+1
-1
@@ -437,7 +437,7 @@ function! fzf#vim#tags(...)
|
|||||||
let copt = '--ansi '
|
let copt = '--ansi '
|
||||||
endif
|
endif
|
||||||
call s:fzf({
|
call s:fzf({
|
||||||
\ 'source': proc.shellescape(tagfile),
|
\ 'source': proc.shellescape(fnamemodify(tagfile, ':t')),
|
||||||
\ 'dir': fnamemodify(tagfile, ':h'),
|
\ 'dir': fnamemodify(tagfile, ':h'),
|
||||||
\ 'options': copt.'+m --tiebreak=begin --prompt "Tags> "'.s:expect(),
|
\ 'options': copt.'+m --tiebreak=begin --prompt "Tags> "'.s:expect(),
|
||||||
\ 'sink*': function('s:tags_sink')}, a:000)
|
\ 'sink*': function('s:tags_sink')}, a:000)
|
||||||
|
|||||||
Reference in new issue
Block a user