mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
committed by
Andy Stewart
parent
edb607cc4b
commit
3d29f67380
@@ -436,7 +436,7 @@ function! s:open_hunk_preview_window()
|
|||||||
call nvim_buf_set_name(buf, 'gitgutter://hunk-preview')
|
call nvim_buf_set_name(buf, 'gitgutter://hunk-preview')
|
||||||
|
|
||||||
" Assumes cursor is in original window.
|
" Assumes cursor is in original window.
|
||||||
autocmd CursorMoved <buffer> ++once call gitgutter#hunk#close_hunk_preview_window()
|
autocmd CursorMoved,TabLeave <buffer> ++once call gitgutter#hunk#close_hunk_preview_window()
|
||||||
|
|
||||||
if g:gitgutter_close_preview_on_escape
|
if g:gitgutter_close_preview_on_escape
|
||||||
" Map <Esc> to close the floating preview.
|
" Map <Esc> to close the floating preview.
|
||||||
|
|||||||
Reference in New Issue
Block a user