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, '')
|
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 []
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue