mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-30 06:35:29 +08:00
[Tags] Support Windows-style absolute filepaths (#428)
This commit is contained in:
committed by
Junegunn Choi
parent
1e40de4f2d
commit
fa91d53f5c
@@ -753,8 +753,8 @@ function! s:tags_sink(lines)
|
|||||||
let excmd = matchstr(join(parts[2:-2], '')[:-2], '^.*\ze;"\t')
|
let excmd = matchstr(join(parts[2:-2], '')[:-2], '^.*\ze;"\t')
|
||||||
let base = fnamemodify(parts[-1], ':h')
|
let base = fnamemodify(parts[-1], ':h')
|
||||||
let relpath = parts[1][:-2]
|
let relpath = parts[1][:-2]
|
||||||
let abspath = relpath =~ '^/' ? relpath : join([base, relpath], '/')
|
let abspath = relpath =~ (s:is_win ? '^[A-Z]:\' : '^/') ? relpath : join([base, relpath], '/')
|
||||||
call s:open(cmd, abspath)
|
call s:open(cmd, expand(abspath, 1))
|
||||||
execute excmd
|
execute excmd
|
||||||
call add(qfl, {'filename': expand('%'), 'lnum': line('.'), 'text': getline('.')})
|
call add(qfl, {'filename': expand('%'), 'lnum': line('.'), 'text': getline('.')})
|
||||||
catch /^Vim:Interrupt$/
|
catch /^Vim:Interrupt$/
|
||||||
|
|||||||
Reference in New Issue
Block a user