mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Prevent hunk preview using preview window from changing alternate file
This commit is contained in:
@@ -461,7 +461,8 @@ function! s:open_hunk_preview_window()
|
||||
if &previewwindow
|
||||
file gitgutter://hunk-preview
|
||||
else
|
||||
noautocmd execute g:gitgutter_preview_win_location &previewheight 'new gitgutter://hunk-preview'
|
||||
noautocmd execute g:gitgutter_preview_win_location &previewheight 'new'
|
||||
file gitgutter://hunk-preview
|
||||
doautocmd WinEnter
|
||||
set previewwindow
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user