From 21aacd530486d09010f94bdc326741f5e269b2c7 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 28 Sep 2026 06:04:49 +0900 Subject: [PATCH] Give the action the last tag standing in a multi-selection Entries opened in the loop take the action only when one was selected, so refusing the others left the survivor opened with ':edit' and the key ignored. --- autoload/fzf/vim.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 84590b9..41bbca1 100755 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -1849,6 +1849,11 @@ function! s:tags_sink(from, lines) call s:fill_quickfix('tags', qfl) elseif len(qfl) == 1 + " Entries opened in the loop take the action only when one was selected, so + " the last one standing of a multi-selection still owes the key its action + if len(list) > 1 + call s:action_for(key, qfl[0].filename, 1) + endif normal! ^zvzz endif if !empty(tagname)