Ejemplo n.º 1
0
    def insert(self, edit, pt, text):
        if edit.edit_token == 0:
            raise ValueError(
                "Edit objects may not be used after the TextCommand's run method has returned"
            )

        return sublime_api.view_insert(self.view_id, edit.edit_token, pt, text)
Ejemplo n.º 2
0
 def insert(self, edit, pt, text):
     sublime_api.view_insert(self.view_id, edit.edit_token, pt, text)
Ejemplo n.º 3
0
    def insert(self, edit, pt, text):
        if edit.edit_token == 0:
            raise ValueError("Edit objects may not be used after the TextCommand's run method has returned")

        return sublime_api.view_insert(self.view_id, edit.edit_token, pt, text)