Skip to content

Commit

Permalink
Merge pull request #116 from Bishoy-at-pieces/fix-cut
Browse files Browse the repository at this point in the history
fix cut
  • Loading branch information
bishoy-at-pieces authored Jul 3, 2024
2 parents 148e07b + b6f2128 commit 3d19a7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion event_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d19a7c

Please sign in to comment.