Skip to content

Commit

Permalink
fix: 🐛 Editor title re-edited
Browse files Browse the repository at this point in the history
  • Loading branch information
BHznJNs committed Aug 24, 2023
1 parent db98d87 commit 473628c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct EditorInit;
impl EditorInit {
pub fn display_title(width: usize) {
let term_width = Terminal::width();
let title_str = format!("REditor v{}", env!("CARGO_PKG_VERSION"));
let title_str = format!("Rusditor v{}", env!("CARGO_PKG_VERSION"));
let padding = (width - title_str.len()) / 2;
let padding_str1 = " ".repeat(padding);
let padding_str2 = " ".repeat(term_width - title_str.len() - padding);
Expand Down

0 comments on commit 473628c

Please sign in to comment.