mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
fix: 2114
This commit is contained in:
parent
b7b7705df2
commit
f40d368069
1 changed files with 20 additions and 0 deletions
|
|
@ -23,6 +23,8 @@ use ratatui::{
|
|||
Frame,
|
||||
};
|
||||
|
||||
use super::FileTreeOpen;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct InspectCommitOpen {
|
||||
pub commit_id: CommitId,
|
||||
|
|
@ -169,6 +171,24 @@ impl Component for InspectCommitPopup {
|
|||
} else if key_match(e, self.key_config.keys.move_left)
|
||||
{
|
||||
self.hide_stacked(false);
|
||||
} else if key_match(
|
||||
e,
|
||||
self.key_config.keys.open_file_tree,
|
||||
) {
|
||||
if let Some(commit_id) = self
|
||||
.open_request
|
||||
.as_ref()
|
||||
.map(|open_commit| open_commit.commit_id)
|
||||
{
|
||||
self.hide_stacked(true);
|
||||
self.queue.push(InternalEvent::OpenPopup(
|
||||
StackablePopupOpen::FileTree(
|
||||
FileTreeOpen::new(commit_id),
|
||||
),
|
||||
));
|
||||
return Ok(EventState::Consumed);
|
||||
}
|
||||
return Ok(EventState::NotConsumed);
|
||||
}
|
||||
|
||||
return Ok(EventState::Consumed);
|
||||
|
|
|
|||
Loading…
Reference in a new issue