diff options
author | Christoph Rüßler <christoph.ruessler@mailbox.org> | 2023-01-08 12:47:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 12:47:37 +0100 |
commit | 9fa5fddd93d6688606f78950ac02035212af80c1 (patch) | |
tree | 251db589a7b64ad1593b35d7bab56d427a0c13c9 /src/tabs | |
parent | f29178d1b307ca536b568e375064ffba4e437ba7 (diff) |
Allow to scroll diffs horizontally (#1327)
Diffstat (limited to 'src/tabs')
-rw-r--r-- | src/tabs/status.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tabs/status.rs b/src/tabs/status.rs index b7b3d599..84085a19 100644 --- a/src/tabs/status.rs +++ b/src/tabs/status.rs @@ -105,8 +105,8 @@ impl DrawableComponent for Status { .constraints( if self.focus == Focus::Diff { [ - Constraint::Percentage(30), - Constraint::Percentage(70), + Constraint::Percentage(0), + Constraint::Percentage(100), ] } else { [ @@ -674,7 +674,7 @@ impl Status { let focus_on_diff = self.is_focus_on_diff(); out.push( CommandInfo::new( - strings::commands::diff_focus_left(&self.key_config), + strings::commands::close_popup(&self.key_config), true, (self.visible && focus_on_diff) || force_all, ) @@ -846,7 +846,7 @@ impl Component for Status { self.switch_focus(Focus::Diff).map(Into::into) } else if key_match( k, - self.key_config.keys.focus_left, + self.key_config.keys.exit_popup, ) { self.switch_focus(match self.diff_target { DiffTarget::Stage => Focus::Stage, |