vim. fix return type of s:transaction.from_lnum()
This commit is contained in:
parent
f7f8432c52
commit
eea6f33a2e
1 changed files with 2 additions and 2 deletions
|
|
@ -328,7 +328,7 @@ endf
|
||||||
function! s:transaction.from_lnum(lnum) dict "{{{2
|
function! s:transaction.from_lnum(lnum) dict "{{{2
|
||||||
let [head, tail] = s:get_transaction_extents(a:lnum)
|
let [head, tail] = s:get_transaction_extents(a:lnum)
|
||||||
if ! head
|
if ! head
|
||||||
return
|
return {}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let trans = copy(s:transaction)
|
let trans = copy(s:transaction)
|
||||||
|
|
@ -342,7 +342,7 @@ function! s:transaction.from_lnum(lnum) dict "{{{2
|
||||||
elseif parts[0] !~ '^\d'
|
elseif parts[0] !~ '^\d'
|
||||||
" this case is avoided in s:get_transaction_extents(),
|
" this case is avoided in s:get_transaction_extents(),
|
||||||
" but we'll check anyway.
|
" but we'll check anyway.
|
||||||
return
|
return {}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let description = []
|
let description = []
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue