Skip to content

Commit ae95e95

Browse files
committed
Fix separator color
1 parent cc6a9c8 commit ae95e95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/info.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ impl std::fmt::Display for Info {
4545
if !self.disable_fields.git_info{
4646
let git_info;
4747
if self.git_username != "" {
48-
git_info = format!("{} : {}", self.git_username, self.git_version);
48+
git_info = format!("{} : {}", self.git_username, self.git_version);
49+
write!(&mut buf, "{}{}", &self.get_formatted_info_label(&self.git_username, color), " : ")?;
4950
} else {
5051
git_info = self.git_version.clone();
5152
}
52-
write_buf(&mut buf, &self.get_formatted_info_label(&git_info, color), "")?;
53+
write_buf(&mut buf, &self.get_formatted_info_label(&self.git_version, color), "")?;
5354
let separator = "-".repeat(git_info.len());
5455
write_buf(&mut buf, &self.get_formatted_info_label("", color), &separator)?;
5556
}

0 commit comments

Comments
 (0)