def on_done(self, s):
        self._restore_sel()
        try:
            SearchImpl(self.view, s, start_sel=self.original_sel).search()
            ex_commands.VintageExState.search_buffer_type = 'pattern_search'
        except __HOLE__, e:
            if 'parsing' in str(e):
                print "VintageEx: Regex parsing error. Incomplete pattern: %s" % s
            else:
                raise e
        self.original_sel = None
        self._restore_sel()
dataset/ETHPy150Open SublimeText/VintageEx/ex_search_cmd.py/ViSearch.on_done