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, '') call add(hierarchy, '')
endif endif
let results = [] let results = LedgerFindInTree(LedgerGetAccountHierarchy(), hierarchy)
return reverse(LedgerFindInTree(LedgerGetAccountHierarchy(), hierarchy)) call add(results, a:base)
return reverse(results)
else else
unlet! b:compl_context unlet! b:compl_context
return [] return []