From 3ba3d3e07f5ef542291c84821d6922ddabcad570 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Sat, 23 May 2020 00:15:11 +0200 Subject: [PATCH] consitent title --- src/strings.rs | 2 ++ src/tabs/revlog/mod.rs | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/strings.rs b/src/strings.rs index a08f9ef8..e8f74218 100644 --- a/src/strings.rs +++ b/src/strings.rs @@ -17,6 +17,8 @@ pub static STASH_POPUP_MSG: &str = "type name (optional)"; pub static RESET_TITLE: &str = "Reset"; pub static RESET_MSG: &str = "confirm file reset?"; +pub static LOG_TITLE: &str = "Commit"; + pub static HELP_TITLE: &str = "Help: all commands"; pub static STASHING_FILES_TITLE: &str = "Files to Stash"; diff --git a/src/tabs/revlog/mod.rs b/src/tabs/revlog/mod.rs index 062f2f50..1d4d97db 100644 --- a/src/tabs/revlog/mod.rs +++ b/src/tabs/revlog/mod.rs @@ -6,7 +6,7 @@ use crate::{ ScrollType, }, keys, - strings::commands, + strings::{self, commands}, ui::calc_scroll_top, ui::style::Theme, }; @@ -254,7 +254,8 @@ impl DrawableComponent for Revlog { ); let title = format!( - "commit {}/{}", + "{} {}/{}", + strings::LOG_TITLE, self.count_total.saturating_sub(self.selection), self.count_total, );