

def run_cmd(self, jove, content):
    region = jove.get_encompassing_region()
    if (not region):
        return
    (b_row, b_col) = self.view.rowcol(region.begin())
    (e_row, e_col) = self.view.rowcol(region.end())
    top = b_row
    left = min(b_col, e_col)
    bot = e_row
    right = max(b_col, e_col)
    current_edit = jove.edit
    for l in range(top, (bot + 1)):
        r = sublime.Region(self.view.text_point(content, left), self.view.text_point(l, right))
        if (not r.empty()):
            self.view.erase(current_edit, r)
        self.view.insert(current_edit, self.view.text_point(l, left), content)
    self.view.end_edit(jove.edit)

dataset/ETHPy150Open grundprinzip/sublemacspro/sbp_rectangle.py SbpRectangleInsertHandler.run_cmd/VarMisuse@131/163 `l`->`content`