From 74cab39bbf855b9ef7a191a09f2522e04eb6893d Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 28 Sep 2026 04:01:19 +0900 Subject: [PATCH] Name the tag when a BTags entry is too short to hold an address A source of fewer than three columns raised E684 from parts[2], which the loop reported in place of the message the line below it gives. --- autoload/fzf/vim.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 718c5d1..ff7facf 100755 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -1712,9 +1712,9 @@ function! s:btags_sink(from, lines) for line in a:lines[1:] try let parts = split(line, "\t") - let excmd = s:tag_address(parts[2], 0) + let excmd = len(parts) > 2 ? s:tag_address(parts[2], 0) : '' if empty(excmd) - throw 'Unsupported tag address: '.s:strip(parts[0]) + throw 'Unsupported tag address: '.s:strip(get(parts, 0, line)) endif call s:execute_tag_address(excmd) call add(qfl, {'filename': expand('%'), 'lnum': line('.'), 'text': getline('.')})