Skip to content

Commit

Permalink
Fix error when no region is selected and cursor position is not at th…
Browse files Browse the repository at this point in the history
…e beginning of a file.
  • Loading branch information
nmantani committed Dec 4, 2021
1 parent 47ce8f7 commit 91b390e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/Operations/XOR/xor_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ def xor_with_another_file(fi):
data = fi.getDocument()
if sel_len == 0:
sel_len = data_len
offset = 0
else:
fi.activateDocumentAt(current_file_index)
print("%s is empty." % xored_filename)
Expand Down

0 comments on commit 91b390e

Please sign in to comment.