This commit is contained in:
qlem
2020-04-01 17:57:38 +02:00
committed by Andy Stewart
parent 262f1b5c9a
commit 9cdb90b1e1

View File

@@ -436,7 +436,7 @@ function! s:open_hunk_preview_window()
silent! wincmd P
if !&previewwindow
noautocmd execute g:gitgutter_preview_win_location &previewheight 'new gitgutter://hunk-preview'
doautocmd WinEnter gitgutter://hunk-preview
doautocmd WinEnter
let s:winid = win_getid()
set previewwindow
setlocal filetype=diff buftype=acwrite bufhidden=delete
@@ -513,6 +513,7 @@ endfunction
function! s:goto_original_window()
noautocmd wincmd p
doautocmd WinEnter
endfunction