fix the behavior of the status line of the hunk preview windows

This commit is contained in:
qlem
2020-03-31 16:29:35 +02:00
committed by Andy Stewart
parent 7c48aa1e72
commit 9c7f819538

View File

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