mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-10-14 00:48:58 +08:00
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.
This commit is contained in:
1 file changed
+5
@@ -1849,6 +1849,11 @@ function! s:tags_sink(from, lines)
|
|||||||
|
|
||||||
call s:fill_quickfix('tags', qfl)
|
call s:fill_quickfix('tags', qfl)
|
||||||
elseif len(qfl) == 1
|
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
|
normal! ^zvzz
|
||||||
endif
|
endif
|
||||||
if !empty(tagname)
|
if !empty(tagname)
|
||||||
|
|||||||
Reference in new issue
Block a user