consitent title

This commit is contained in:
Stephan Dilly 2020-05-23 00:15:11 +02:00
parent 9b1e921af8
commit 3ba3d3e07f
2 changed files with 5 additions and 2 deletions

View file

@ -17,6 +17,8 @@ pub static STASH_POPUP_MSG: &str = "type name (optional)";
pub static RESET_TITLE: &str = "Reset"; pub static RESET_TITLE: &str = "Reset";
pub static RESET_MSG: &str = "confirm file 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 HELP_TITLE: &str = "Help: all commands";
pub static STASHING_FILES_TITLE: &str = "Files to Stash"; pub static STASHING_FILES_TITLE: &str = "Files to Stash";

View file

@ -6,7 +6,7 @@ use crate::{
ScrollType, ScrollType,
}, },
keys, keys,
strings::commands, strings::{self, commands},
ui::calc_scroll_top, ui::calc_scroll_top,
ui::style::Theme, ui::style::Theme,
}; };
@ -254,7 +254,8 @@ impl DrawableComponent for Revlog {
); );
let title = format!( let title = format!(
"commit {}/{}", "{} {}/{}",
strings::LOG_TITLE,
self.count_total.saturating_sub(self.selection), self.count_total.saturating_sub(self.selection),
self.count_total, self.count_total,
); );