vim. fix return type of s:transaction.from_lnum()

This commit is contained in:
Johann Klähn 2010-09-08 17:34:05 +02:00
parent f7f8432c52
commit eea6f33a2e

View file

@ -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 = []