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