def exec_region(area, env): data = area.tag_get_ranges('sel') data = data.encode('utf-8') exc(data, env) area.clear_selection()
def exec_cmd(area, env): ask = Ask(area) area.active() exc(ask.data, env)