mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 22:33:51 -05:00
Guard against missing win_id2win on Vim 7.4
Resolves: https://github.com/tpope/vim-fugitive/issues/2136
This commit is contained in:
@@ -6806,7 +6806,7 @@ endfunction
|
||||
|
||||
function! s:BlameLeave() abort
|
||||
let state = s:TempState()
|
||||
let bufwinnr = win_id2win(get(state, 'origin_winid'))
|
||||
let bufwinnr = exists('*win_id2win') ? win_id2win(get(state, 'origin_winid')) : 0
|
||||
if bufwinnr == 0
|
||||
let bufwinnr = bufwinnr(get(state, 'origin_bufnr', -1))
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user