vim: add current text to completion
This commit is contained in:
parent
4621f1117e
commit
3b1898f3e8
1 changed files with 3 additions and 2 deletions
|
|
@ -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 []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue