Do not add a quickfix item for a refused tag address

The cursor has not moved, so the item repeated the previous entry's line and
text. :BTags already skips such an entry.
This commit is contained in:
Junegunn Choi
2026-09-27 21:24:52 +09:00
parent 88b0ae41c8
commit a5717367fc
+3
View File
@@ -1764,6 +1764,9 @@ function! s:tags_sink(from, lines)
else
call s:open(expand(abspath, 1))
endif
if empty(excmd)
continue
endif
call s:execute_tag_address(excmd)
call add(qfl, {'filename': expand('%'), 'lnum': line('.'), 'text': getline('.')})
if empty(tagname)