use current search pattern if no given