diff options
author | Johann Klähn <kljohann@gmail.com> | 2010-09-08 17:34:05 +0200 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2010-09-08 17:34:05 +0200 |
commit | eea6f33a2e47913db11bfaeb3181cc2e4d05fddd (patch) | |
tree | 00ef347a9c4ff5fa98b5bc1c74165bbe645ee49a /contrib/vim | |
parent | f7f8432c52e91031e452c5901cf6e20bfae8cc2a (diff) | |
download | fork-ledger-eea6f33a2e47913db11bfaeb3181cc2e4d05fddd.tar.gz fork-ledger-eea6f33a2e47913db11bfaeb3181cc2e4d05fddd.tar.bz2 fork-ledger-eea6f33a2e47913db11bfaeb3181cc2e4d05fddd.zip |
vim. fix return type of s:transaction.from_lnum()
Diffstat (limited to 'contrib/vim')
-rw-r--r-- | contrib/vim/ftplugin/ledger.vim | 4 |
1 files changed, 2 insertions, 2 deletions
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 = [] |