Commit 871d4e05 authored by Kai Willadsen's avatar Kai Willadsen

filediff: Fix initial focus pane for two-pane comparison

This was a simple bad logic change from when I was reworking the logic
around file loading. It's almost as though implicitly using Booleans as
array indices is a bad idea.

Regression was introduced in b0ba6344.
parent f0db1d45
......@@ -1272,7 +1272,7 @@ class FileDiff(MeldDoc, Component):
yield i
for i in self._diff_files():
yield i
focus_pane = 0 if self.num_panes < 3 else 1
focus_pane = 0 if self.num_panes < 2 else 1
self.textview[focus_pane].grab_focus()
def set_meta(self, meta):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment