repair broken search functionality and further improve pathbar behavior with narrow windows