def run(self, edit): blocks = [block_at(self.view, p) for p in list_cursors(self.view)] set_selection(self.view, blocks)
def run(self, edit): pos = cursor_pos(self.view) this_block = block_at(self.view, pos) self.view.erase(edit, expand_min_gap(self.view, this_block))