mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Fixed call to current_hunk in hunk text object
This commit is contained in:
committed by
Andy Stewart
parent
790ffa476a
commit
314e64673b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user