Skip to content

Commit 3ba3d3e

Browse files
author
Stephan Dilly
committed
consitent title
1 parent 9b1e921 commit 3ba3d3e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/strings.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ pub static STASH_POPUP_MSG: &str = "type name (optional)";
1717
pub static RESET_TITLE: &str = "Reset";
1818
pub static RESET_MSG: &str = "confirm file reset?";
1919

20+
pub static LOG_TITLE: &str = "Commit";
21+
2022
pub static HELP_TITLE: &str = "Help: all commands";
2123

2224
pub static STASHING_FILES_TITLE: &str = "Files to Stash";

src/tabs/revlog/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::{
66
ScrollType,
77
},
88
keys,
9-
strings::commands,
9+
strings::{self, commands},
1010
ui::calc_scroll_top,
1111
ui::style::Theme,
1212
};
@@ -254,7 +254,8 @@ impl DrawableComponent for Revlog {
254254
);
255255

256256
let title = format!(
257-
"commit {}/{}",
257+
"{} {}/{}",
258+
strings::LOG_TITLE,
258259
self.count_total.saturating_sub(self.selection),
259260
self.count_total,
260261
);

0 commit comments

Comments
 (0)