From ba458b129e3e7fc4ee0201ae213064e482f2cc5a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 28 Sep 2026 02:40:06 +0900 Subject: [PATCH] Say why CTRL-O did nothing on a refused address The sinks name the tag; the Show callback returned without a word, so the key looked broken. --- autoload/fzf/vim.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 25f447c..30a32bd 100755 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -776,7 +776,10 @@ function! s:goto_entry(winid, bufnr, dir, kind, entry) abort let path = relpath =~ (s:is_win ? '^[A-Z]:\' : '^/') \ ? relpath : join([fnamemodify(parts[-1], ':h'), relpath], '/') let path = expand(path, 1) - if empty(excmd) || !filereadable(path) + if empty(excmd) + return s:warn('Unsupported tag address: '.s:strip(parts[0])) + endif + if !filereadable(path) return endif let cmds = s:edit_cmds(a:winid, path) @@ -788,7 +791,7 @@ function! s:goto_entry(winid, bufnr, dir, kind, entry) abort endif let excmd = s:tag_address(parts[2], 0) if empty(excmd) - return + return s:warn('Unsupported tag address: '.s:strip(parts[0])) endif let cmds = ['keepalt keepjumps hide buffer '.a:bufnr, \ s:sandboxed('keepjumps '.excmd), 'normal! zvzz']