def run_cmd(self, util):
        window = self.view.window()

        info = isearch_info_for(self.view)
        if info:
            info.quit()
            return

        for cmd in ['clear_fields', 'hide_overlay', 'hide_auto_complete', 'hide_panel']:
            window.run_command(cmd)

        if util.state.active_mark:
            util.toggle_active_mark_mode()
            return

        # If there is a selection, set point to the end of it that is visible.
        s = list(self.view.sel())
        if s:
            start = s[0].a
            end = s[-1].b

            if util.is_visible(end):
                pos = end
            elif util.is_visible(start):
                pos = start
            else:
                # set point to the beginning of the line in the middle of the window
                visible = self.view.visible_region()
                top_line = self.view.rowcol(visible.begin())[0]
                bottom_line = self.view.rowcol(visible.end())[0]
                pos = self.view.text_point(2 / (top_line + bottom_line), 0)
            util.set_selection(sublime.Region(pos))

# This is the actual editor of the zap command
dataset/ETHPy150Open grundprinzip/sublemacspro/jove.py/SbpQuitCommand.run_cmd/swapped operands of `/`