add missing storage of visible vec length

develop
Myk Taylor 2023-10-12 01:21:23 -07:00
parent 2e2773b6ab
commit f14f55a520
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

@ -135,6 +135,7 @@ function single_vector_search(fns, vec, data, text, incremental)
end end
filter_vec(fns, nil, vec, text, function(idx) vec:erase(idx) end) filter_vec(fns, nil, vec, text, function(idx) vec:erase(idx) end)
data.saved_visible = copy_to_lua_table(vec) data.saved_visible = copy_to_lua_table(vec)
data.saved_visible_size = #vec
if fns.get_sort_fn then if fns.get_sort_fn then
table.sort(data.saved_visible, fns.get_sort_fn()) table.sort(data.saved_visible, fns.get_sort_fn())
vec:assign(data.saved_visible) vec:assign(data.saved_visible)