Fixed call to current_hunk in hunk text object

This commit is contained in:
Patryk Czachurski
2018-02-18 18:22:24 +01:00
committed by Andy Stewart
parent 790ffa476a
commit 314e64673b

View File

@@ -108,8 +108,7 @@ function! gitgutter#hunk#cursor_in_hunk(hunk) abort
endfunction
function! gitgutter#hunk#text_object(inner) abort
let bufnr = bufnr('')
let hunk = s:current_hunk(bufnr)
let hunk = s:current_hunk()
if empty(hunk)
return