diff --git a/src/components/help.rs b/src/components/help.rs index 36bfcd2f..1b6a83e0 100644 --- a/src/components/help.rs +++ b/src/components/help.rs @@ -195,7 +195,7 @@ impl HelpComponent { } } - fn get_text<'a>(&self) -> Vec> { + fn get_text(&self) -> Vec { let mut txt = Vec::new(); let mut processed = 0_u16; @@ -204,7 +204,7 @@ impl HelpComponent { &self.cmds.iter().group_by(|e| e.text.group) { txt.push(Text::Styled( - Cow::from(format!(" {}\n", key)), + Cow::from(format!("{}\n", key)), Style::default().modifier(Modifier::REVERSED), )); diff --git a/src/strings.rs b/src/strings.rs index 9f7560c8..5cd7e930 100644 --- a/src/strings.rs +++ b/src/strings.rs @@ -50,13 +50,13 @@ pub mod order { pub mod commands { use crate::components::CommandText; - static CMD_GROUP_GENERAL: &str = "General"; - static CMD_GROUP_DIFF: &str = "Diff"; - static CMD_GROUP_CHANGES: &str = "Changes"; - static CMD_GROUP_COMMIT: &str = "Commit"; - static CMD_GROUP_STASHING: &str = "Stashing"; - static CMD_GROUP_STASHES: &str = "Stashes"; - static CMD_GROUP_LOG: &str = "Log"; + static CMD_GROUP_GENERAL: &str = "-- General --"; + static CMD_GROUP_DIFF: &str = "-- Diff --"; + static CMD_GROUP_CHANGES: &str = "-- Changes --"; + static CMD_GROUP_COMMIT: &str = "-- Commit --"; + static CMD_GROUP_STASHING: &str = "-- Stashing --"; + static CMD_GROUP_STASHES: &str = "-- Stashes --"; + static CMD_GROUP_LOG: &str = "-- Log --"; /// pub static TOGGLE_TABS: CommandText = CommandText::new(