vim: add current text to completion

This commit is contained in:
Johann Klähn 2009-06-25 13:47:34 +02:00
parent 4621f1117e
commit 3b1898f3e8

View file

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