Handle search field history list filtering better.

Avoid clearing the list model and readding items, instead preallocate
and edit labels and visibilities of those existing items.