From 5c87ab86c0e7b0ec8a5edd39a4ce5500bb9e9333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Janou=C5=A1ek?= Date: Tue, 14 May 2019 11:46:01 +0200 Subject: [PATCH] [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!). --- autoload/fzf/vim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 82b0e00..ec1c00d 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -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