diff options
Diffstat (limited to 'src/tabs')
-rw-r--r-- | src/tabs/revlog.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tabs/revlog.rs b/src/tabs/revlog.rs index 0b0ad7d4..a7886207 100644 --- a/src/tabs/revlog.rs +++ b/src/tabs/revlog.rs @@ -329,6 +329,19 @@ impl Component for Revlog { return Ok(EventState::Consumed); } else if key_match( k, + self.key_config.keys.log_reset_comit, + ) { + return self.selected_commit().map_or( + Ok(EventState::NotConsumed), + |id| { + self.queue.push( + InternalEvent::OpenResetPopup(id), + ); + Ok(EventState::Consumed) + }, + ); + } else if key_match( + k, self.key_config.keys.compare_commits, ) && self.list.marked_count() > 0 { @@ -449,6 +462,12 @@ impl Component for Revlog { self.visible || force_all, )); + out.push(CommandInfo::new( + strings::commands::log_reset_commit(&self.key_config), + self.selected_commit().is_some(), + self.visible || force_all, + )); + visibility_blocking(self) } |