refactoring
This commit is contained in:
@@ -92,16 +92,14 @@ do
|
|||||||
end
|
end
|
||||||
|
|
||||||
function private.new_search(filter_string, prettified)
|
function private.new_search(filter_string, prettified)
|
||||||
if prettified then
|
tinsert(aux_recent_searches, 1, {
|
||||||
tinsert(aux_recent_searches, 1, {
|
filter_string = filter_string,
|
||||||
filter_string = filter_string,
|
prettified = prettified,
|
||||||
prettified = prettified,
|
})
|
||||||
})
|
while getn(aux_recent_searches) > 50 do
|
||||||
while getn(aux_recent_searches) > 50 do
|
tremove(aux_recent_searches)
|
||||||
tremove(aux_recent_searches)
|
|
||||||
end
|
|
||||||
m.update_search_listings()
|
|
||||||
end
|
end
|
||||||
|
m.update_search_listings()
|
||||||
|
|
||||||
while getn(searches) > search_index do
|
while getn(searches) > search_index do
|
||||||
tremove(searches)
|
tremove(searches)
|
||||||
|
|||||||
Reference in New Issue
Block a user