summaryrefslogtreecommitdiff
path: root/contrib/vim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/vim/ftplugin')
-rw-r--r--contrib/vim/ftplugin/ledger.vim4
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 = []