use current search pattern if no given
Merge pull request #29 from seletskiy/master

use current search pattern if no given