def run_cmd(self, util, cmd, _times, **args):
        view = self.view
        window = view.window()
        visible = view.visible_region()
        def doit():
            for i in range(_times):
                window.run_command(cmd, args)

        if cmd in ('redo', 'undo'):
            sublime.set_timeout(doit, 10)
        else:
            doit()
            cursor = util.get_last_cursor()
            if not visible.contains(cursor.b):
                util.ensure_visible(cursor, True)
dataset/ETHPy150Open grundprinzip/sublemacspro/jove.py/SbpDoTimesCommand.run_cmd/original