def run(self, edit, insertpt, join=False, left_delete=False):
        view = self.view

        insertpt = int(insertpt)
        insertpt_row = view.rowcol(insertpt)[0]
        iscomment = 0 > view.score_selector(insertpt-1, "comment") and \
            view.score_selector(insertpt-1, "comment.block") == 0

        view.insert(edit, insertpt, "\n")

        view.add_regions("auto_wrap_oldsel", [s for s in view.sel()], "")

        if join and iscomment:
            view.sel().clear()
            view.sel().add(view.text_point(insertpt_row+2, 0))
            view.run_command('toggle_comment', {"block": False})

        view.sel().clear()
        view.sel().add(sublime.Region(insertpt+1, insertpt+1))

        if join:
            view.run_command('join_lines')
            pt = view.sel()[0].end()
            if left_delete and view.substr(sublime.Region(pt-1, pt)) == " ":
                view.run_command("left_delete")

        if view.settings().get('auto_indent'):
            view.run_command('reindent', {'force_indent': False})

        if iscomment:
            view.run_command('toggle_comment', {"block": False})

        view.sel().clear()
        for s in view.get_regions("auto_wrap_oldsel"):
            view.sel().add(s)
        view.erase_regions("auto_wrap_oldsel")
dataset/ETHPy150Open randy3k/AutoWrap/autowrap.py/AutoWrapInsertCommand.run/swapped operands of `>`