Fix search for selected text when search window is already open #42