def run_cmd(self, util, is_copy=False):
        view = self.view
        regions = util.get_regions()
        if regions:
            data = [view.substr(r) for r in regions]
            kill_ring.add(data, True, False)
            if not is_copy:
                for r in reversed(regions):
                    view.erase(util.edit, r)
            else:
                bytes = sum(len(d) for d in data)
                util.set_status("Copied %d bytes in %d regions" % (bytes, len(data)))
            util.toggle_active_mark_mode(False)
dataset/ETHPy150Open grundprinzip/sublemacspro/jove.py/SbpKillRegionCommand.run_cmd/original