small change for search box. losing focus restores the current query

This commit is contained in:
Manuel Simon Hirsig
2016-12-20 19:14:45 +01:00
parent 5d48538942
commit f034504ac5
2 changed files with 2 additions and 3 deletions
+1
View File
@@ -161,6 +161,7 @@ do
return queries and join(map(copy(queries), function(query) return query.prettified end), ';') or color.red(str)
end
editbox.complete = completion.complete_filter
editbox.focus_loss = function() this:SetText(current_search.filter_string or '') end
editbox:SetHeight(25)
editbox.char = function()
this:complete()