Complete function assumed that a line started with x <date> or a
priority which is not necessarily true, thus some lines where ignored
from completion.
This commit is contained in:
David Beniamine
2017-03-30 18:57:18 +02:00
parent 849a7d5f61
commit f77215ca80

View File

@@ -350,7 +350,7 @@ fun! todo#Complete(findstart, base)
let res = [] let res = []
for bufnr in range(1,bufnr('$')) for bufnr in range(1,bufnr('$'))
let lines=getbufline(bufnr,1,"$") let lines=getbufline(bufnr,1,"$")
for line in lines for line in lines
if line =~ " ".a:base if line =~ " ".a:base
" init temporary item " init temporary item
let item={} let item={}