diff --git a/event_listener.py b/event_listener.py index 068f1b2..f483d16 100644 --- a/event_listener.py +++ b/event_listener.py @@ -30,7 +30,8 @@ def on_text_command(self,view,command_name,args): if command_name == "paste": # To avoid pasting in the middle of the view of the copilot self.on_query_context(view,"pieces_copilot_add",True,sublime.OP_EQUAL,True) - + elif command_name == "cut": + self.on_query_context(view,"pieces_copilot_remove",True,sublime.OP_EQUAL,True) def check(self,command_name): if command_name.startswith("pieces_") and command_name not in PiecesEventListener.commands_to_exclude: # Check any command