mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -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
|
endfunction
|
||||||
|
|
||||||
function! gitgutter#hunk#text_object(inner) abort
|
function! gitgutter#hunk#text_object(inner) abort
|
||||||
let bufnr = bufnr('')
|
let hunk = s:current_hunk()
|
||||||
let hunk = s:current_hunk(bufnr)
|
|
||||||
|
|
||||||
if empty(hunk)
|
if empty(hunk)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user