disable swaping if a search is active