mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
@@ -466,6 +466,8 @@ function! s:open_hunk_preview_window()
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
let [previewpopup, &previewpopup] = [&previewpopup, '']
|
||||||
|
|
||||||
" Specifying where to open the preview window can lead to the cursor going
|
" Specifying where to open the preview window can lead to the cursor going
|
||||||
" to an unexpected window when the preview window is closed (#769).
|
" to an unexpected window when the preview window is closed (#769).
|
||||||
silent! noautocmd execute g:gitgutter_preview_win_location 'pedit gitgutter://hunk-preview'
|
silent! noautocmd execute g:gitgutter_preview_win_location 'pedit gitgutter://hunk-preview'
|
||||||
@@ -484,6 +486,8 @@ function! s:open_hunk_preview_window()
|
|||||||
" Ensure cursor goes to the expected window.
|
" Ensure cursor goes to the expected window.
|
||||||
nnoremap <buffer> <silent> <Esc> :<C-U>wincmd p<Bar>pclose<CR>
|
nnoremap <buffer> <silent> <Esc> :<C-U>wincmd p<Bar>pclose<CR>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
let &previewpopup=previewpopup
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user