Skip to content

Commit d3feba5

Browse files
committed
Better error message when an action is attempted with no chunk
1 parent f639621 commit d3feba5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

meld/filediff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,8 @@ def get_action_chunk(self, src, dst):
822822
valid_panes = list(range(0, self.num_panes))
823823
if src not in valid_panes or dst not in valid_panes:
824824
raise ValueError("Action was taken on invalid panes")
825-
if self.num_panes > 2 and self.cursor.chunk is None:
826-
raise ValueError("Action chunk taken from passive pane")
825+
if self.cursor.chunk is None:
826+
raise ValueError("Action was taken without chunk")
827827

828828
chunk = self.linediffer.get_chunk(self.cursor.chunk, src, dst)
829829
if chunk is None:

0 commit comments

Comments
 (0)