From eea6f33a2e47913db11bfaeb3181cc2e4d05fddd Mon Sep 17 00:00:00 2001 From: Johann Klähn Date: Wed, 8 Sep 2010 17:34:05 +0200 Subject: vim. fix return type of s:transaction.from_lnum() --- contrib/vim/ftplugin/ledger.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/vim/ftplugin/ledger.vim') diff --git a/contrib/vim/ftplugin/ledger.vim b/contrib/vim/ftplugin/ledger.vim index 67f692f1..72588712 100644 --- a/contrib/vim/ftplugin/ledger.vim +++ b/contrib/vim/ftplugin/ledger.vim @@ -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 = [] -- cgit v1.2.3