Reset cursor query when closing search view #386

Without focus the search result get erased.