From e288dd4733ac09030fa54a588c3d2ff79946bdaf Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Thu, 22 Apr 2021 15:37:28 +0100 Subject: [PATCH] Suppress echoing of preview window file name The file name does not mean anything so it is unhelpful to show it. Not showing it avoids the hit-enter prompt which can occur. --- autoload/gitgutter/hunk.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/gitgutter/hunk.vim b/autoload/gitgutter/hunk.vim index 05403aa..4fd0613 100644 --- a/autoload/gitgutter/hunk.vim +++ b/autoload/gitgutter/hunk.vim @@ -468,7 +468,7 @@ function! s:open_hunk_preview_window() " Specifying where to open the preview window can lead to the cursor going " to an unexpected window when the preview window is closed (#769). - noautocmd execute g:gitgutter_preview_win_location 'pedit gitgutter://hunk-preview' + silent! noautocmd execute g:gitgutter_preview_win_location 'pedit gitgutter://hunk-preview' silent! wincmd P setlocal statusline=%{''} doautocmd WinEnter