Complete using all buffers

This commit is contained in:
David Beniamine
2015-06-09 20:50:15 +02:00
parent c56632eeaa
commit 7e06e5aafd

View File

@@ -248,9 +248,10 @@ fun! TodoComplete(findstart, base)
endwhile
return start
else
let res = []
let res = []
for bufnr in range(1,bufnr('$'))
let lines=getbufline(bufnr,1,"$")
for line in lines
for line in lines
if line =~ "([a-Z]).* ".a:base
let item={}
let item.word=substitute(line,'.*\('.a:base.'\S*\).*','\1',"")
@@ -267,6 +268,7 @@ fun! TodoComplete(findstart, base)
endif
call add(res,item)
endif
endfor
endfor
return res
endif