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
|
||||
let [head, tail] = s:get_transaction_extents(a:lnum)
|
||||
if ! head
|
||||
return
|
||||
return {}
|
||||
endif
|
||||
|
||||
let trans = copy(s:transaction)
|
||||
|
|
@ -342,7 +342,7 @@ function! s:transaction.from_lnum(lnum) dict "{{{2
|
|||
elseif parts[0] !~ '^\d'
|
||||
" this case is avoided in s:get_transaction_extents(),
|
||||
" but we'll check anyway.
|
||||
return
|
||||
return {}
|
||||
endif
|
||||
|
||||
let description = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue