diff options
Diffstat (limited to 'azalea-chat/src/style.rs')
| -rwxr-xr-x | azalea-chat/src/style.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-chat/src/style.rs b/azalea-chat/src/style.rs index cb708982..ed800c71 100755 --- a/azalea-chat/src/style.rs +++ b/azalea-chat/src/style.rs @@ -435,7 +435,8 @@ impl Style { if !before.underlined.unwrap_or(false) && after.underlined.unwrap_or(false) { ansi_codes.push_str(Ansi::UNDERLINED); } - // if strikethrough used to be false/default and now it's true, set strikethrough + // if strikethrough used to be false/default and now it's true, set + // strikethrough if !before.strikethrough.unwrap_or(false) && after.strikethrough.unwrap_or(false) { ansi_codes.push_str(Ansi::STRIKETHROUGH); } |
