Skip to content

Commit

Permalink
fix(cli): Add a space to target names so wordwise copy-paste can't ca…
Browse files Browse the repository at this point in the history
…tch formatting
  • Loading branch information
alerque committed Mar 12, 2024
1 parent 160423c commit f54ae9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ pub struct MakeTargetStatus {
}

impl MakeTargetStatus {
pub fn new(target: String) -> MakeTargetStatus {
pub fn new(mut target: String) -> MakeTargetStatus {
// Withouth this, copying the string in the terminal as a word brings a U+2069 with it
target.push_str(" ");
let msg = style(LocalText::new("make-report-start")
.arg("target", style(target.clone()).white().bold())
.fmt()).yellow().bright().to_string();
Expand Down

0 comments on commit f54ae9d

Please sign in to comment.