Skip to content

Commit e288dd4

Browse files
committed
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.
1 parent 100bee7 commit e288dd4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/gitgutter/hunk.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ function! s:open_hunk_preview_window()
468468

469469
" Specifying where to open the preview window can lead to the cursor going
470470
" to an unexpected window when the preview window is closed (#769).
471-
noautocmd execute g:gitgutter_preview_win_location 'pedit gitgutter://hunk-preview'
471+
silent! noautocmd execute g:gitgutter_preview_win_location 'pedit gitgutter://hunk-preview'
472472
silent! wincmd P
473473
setlocal statusline=%{''}
474474
doautocmd WinEnter

0 commit comments

Comments
 (0)