diff options
Diffstat (limited to 'contrib/vim')
-rw-r--r-- | contrib/vim/ftplugin/ledger.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/vim/ftplugin/ledger.vim b/contrib/vim/ftplugin/ledger.vim index d74e900f..c965c153 100644 --- a/contrib/vim/ftplugin/ledger.vim +++ b/contrib/vim/ftplugin/ledger.vim @@ -127,8 +127,9 @@ function! LedgerComplete(findstart, base) call add(hierarchy, '') endif - let results = [] - return reverse(LedgerFindInTree(LedgerGetAccountHierarchy(), hierarchy)) + let results = LedgerFindInTree(LedgerGetAccountHierarchy(), hierarchy) + call add(results, a:base) + return reverse(results) else unlet! b:compl_context return [] |