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.
This commit is contained in:
Andy Stewart
2021-04-22 15:37:28 +01:00
parent 100bee7dab
commit e288dd4733

View File

@@ -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