mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-10-07 04:34:36 +08:00
Name a too-short Tags entry the way BTags does
s:strip(parts[0]) on an empty line raises E684, which the loop then reports in place of the message.
This commit is contained in:
1 file changed
+1
-1
@@ -1798,7 +1798,7 @@ function! s:tags_sink(from, lines)
|
|||||||
let parts = split(line, '\t\zs')
|
let parts = split(line, '\t\zs')
|
||||||
let excmd = s:tag_address(join(parts[2:-2], '')[:-2], 1)
|
let excmd = s:tag_address(join(parts[2:-2], '')[:-2], 1)
|
||||||
if empty(excmd)
|
if empty(excmd)
|
||||||
throw 'Unsupported tag address: '.s:strip(parts[0])
|
throw 'Unsupported tag address: '.s:strip(get(parts, 0, line))
|
||||||
endif
|
endif
|
||||||
let base = fnamemodify(parts[-1], ':h')
|
let base = fnamemodify(parts[-1], ':h')
|
||||||
let relpath = parts[1][:-2]
|
let relpath = parts[1][:-2]
|
||||||
|
|||||||
Reference in new issue
Block a user