mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
remove duplicate edit cmd from bar (#1489)
This commit is contained in:
parent
761cb10405
commit
e5c62d01e1
2 changed files with 3 additions and 26 deletions
|
|
@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
* `--bugreport` does not require param ([#1466](https://github.com/extrawurst/gitui/issues/1466))
|
||||
* `edit`-file command shown on commits msg ([#1461](https://github.com/extrawurst/gitui/issues/1461))
|
||||
* crash on branches popup in small terminal ([#1470](https://github.com/extrawurst/gitui/issues/1470))
|
||||
* `edit` command duplication ([#1489](https://github.com/extrawurst/gitui/issues/1489))
|
||||
|
||||
## [0.22.1] - 2022-11-22
|
||||
|
||||
|
|
|
|||
|
|
@ -805,19 +805,7 @@ impl Component for Status {
|
|||
));
|
||||
}
|
||||
|
||||
{
|
||||
out.push(CommandInfo::new(
|
||||
strings::commands::edit_item(&self.key_config),
|
||||
if focus_on_diff {
|
||||
true
|
||||
} else {
|
||||
self.can_focus_diff()
|
||||
},
|
||||
self.visible || force_all,
|
||||
));
|
||||
|
||||
self.commands_nav(out, force_all);
|
||||
}
|
||||
self.commands_nav(out, force_all);
|
||||
|
||||
visibility_blocking(self)
|
||||
}
|
||||
|
|
@ -836,19 +824,7 @@ impl Component for Status {
|
|||
}
|
||||
|
||||
if let Event::Key(k) = ev {
|
||||
return if key_match(k, self.key_config.keys.edit_file)
|
||||
&& (self.can_focus_diff()
|
||||
|| self.is_focus_on_diff())
|
||||
{
|
||||
if let Some((path, _)) = self.selected_path() {
|
||||
self.queue.push(
|
||||
InternalEvent::OpenExternalEditor(Some(
|
||||
path,
|
||||
)),
|
||||
);
|
||||
}
|
||||
Ok(EventState::Consumed)
|
||||
} else if key_match(
|
||||
return if key_match(
|
||||
k,
|
||||
self.key_config.keys.open_commit,
|
||||
) && self.can_commit()
|
||||
|
|
|
|||
Loading…
Reference in a new issue