Fix searchpattern bounds for list window