mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-15 15:46:53 +08:00
[Tags] Workaround for last-position-jump (#810)
If there's an autocmd for BufReadPost that jumps to the last position, searching for the tag location sometimes results in vim printing the wrapscan warning and then requires hit-enter. Execute the search silently to suppress the warning (errors are still visible!).
This commit is contained in:
committed by
Junegunn Choi
parent
ac4e7bfb36
commit
5c87ab86c0
@@ -803,7 +803,7 @@ function! s:tags_sink(lines)
|
||||
let relpath = parts[1][:-2]
|
||||
let abspath = relpath =~ (s:is_win ? '^[A-Z]:\' : '^/') ? relpath : join([base, relpath], '/')
|
||||
call s:open(cmd, expand(abspath, 1))
|
||||
execute excmd
|
||||
silent execute excmd
|
||||
call add(qfl, {'filename': expand('%'), 'lnum': line('.'), 'text': getline('.')})
|
||||
catch /^Vim:Interrupt$/
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user