Complete using all buffers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user