Hi,
the blocks.select function needs a check on line 122 for the mtags
variable which can be nil.
function blocks.select(state,name,tag,criterium)
criterium = criterium or "text"
if find(tag,"=",1,true) then
tag = ""
end
local names = settings_to_set(name)
local all = tag == ""
local tags = not all and settings_to_set(tag)
local hide = state == "process"
local result = lists.filter {
names = "all",
criterium = criterium,
number = sections.numberatdepth(criterium), -- not needed
collected = collected,
}
for i=1,#result do
local ri = result[i]
local metadata = ri.metadata
if names[metadata.name] then
if all then
printblock(ri.index,name,ri.data,hide)
else
local mtags = metadata.tags
for tag, sta in next, tags do
- if mtags[tag] then
+ if mtags and mtags[tag] then
printblock(ri.index,name,ri.data,hide)
break
end
end
end
end
end
end
Wolfgang
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context