recent search listing now no longer showing duplicates for identical searches (syntactially only)

This commit is contained in:
Simon Hirsig
2018-09-09 02:20:59 +02:00
parent 0f7048787c
commit a5614d2e49
+5
View File
@@ -36,6 +36,11 @@ function update_search_listings()
end
function new_recent_search(filter_string, prettified)
for i = getn(recent_searches), 1, -1 do
if recent_searches[i].filter_string == filter_string then
tremove(recent_searches, i)
end
end
tinsert(recent_searches, 1, T.map(
'filter_string', filter_string,
'prettified', prettified