mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Fix moving to floating window
This commit is contained in:
committed by
Andy Stewart
parent
7b0b5098e3
commit
d3a9986fe8
@@ -359,6 +359,11 @@ endfunction
|
|||||||
|
|
||||||
|
|
||||||
function! s:preview(hunk_diff)
|
function! s:preview(hunk_diff)
|
||||||
|
if g:gitgutter_preview_win_floating && exists('*nvim_set_current_win') && s:winid != 0
|
||||||
|
call nvim_set_current_win(s:winid)
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
let lines = split(a:hunk_diff, '\r\?\n')
|
let lines = split(a:hunk_diff, '\r\?\n')
|
||||||
let header = lines[0:4]
|
let header = lines[0:4]
|
||||||
let body = lines[5:]
|
let body = lines[5:]
|
||||||
|
|||||||
Reference in New Issue
Block a user