From 514683efad74d8ac0b1ae7ce04a67ec196bb000a Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Wed, 16 Sep 2015 22:43:33 -0700 Subject: [PATCH] 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. --- autoload/fzf/vim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index fc197c9..2275458 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -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)