Skip to content

Commit

Permalink
fix: order of selected and bg_black in protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
dj95 committed Oct 18, 2024
1 parent 731249f commit dc4b9d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zellij-tile/src/ui_components/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ impl Text {
}

let mut prefix = "".to_owned();
if self.selected {
prefix = format!("x{}", prefix);
}

if self.bg_black {
prefix = format!("z{}", prefix);
}

if self.selected {
prefix = format!("x{}", prefix);
}

format!("{}{}{}", prefix, indices, text)
}
}
Expand Down

0 comments on commit dc4b9d8

Please sign in to comment.