aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-server
diff options
context:
space:
mode:
authorKószó Attila <5616737+Kazimazi@users.noreply.github.com>2026-04-06 15:10:13 +0200
committerGitHub <noreply@github.com>2026-04-06 15:10:13 +0200
commit9bf9bafa1b653e9a0329bfc4ee1efa0af14029c2 (patch)
treeca68d65d88fe316e36bd8378089cf095fa260f63 /zellij-server
parentdocs(changelog): update --name pr (diff)
downloadsl0ppij-9bf9bafa1b653e9a0329bfc4ee1efa0af14029c2.tar.gz
sl0ppij-9bf9bafa1b653e9a0329bfc4ee1efa0af14029c2.tar.xz
sl0ppij-9bf9bafa1b653e9a0329bfc4ee1efa0af14029c2.zip
fix(ansi): reset bold should not entail reset underline (#4962)
Co-authored-by: kazimazi <attila.koszo.official@gmail.com>
Diffstat (limited to 'zellij-server')
-rw-r--r--zellij-server/src/panes/terminal_character.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/zellij-server/src/panes/terminal_character.rs b/zellij-server/src/panes/terminal_character.rs
index 2db884ae..12463af8 100644
--- a/zellij-server/src/panes/terminal_character.rs
+++ b/zellij-server/src/panes/terminal_character.rs
@@ -693,16 +693,11 @@ impl Display for CharacterStyles {
write!(f, "\u{1b}[1m")?;
},
AnsiCode::Reset => {
- write!(f, "\u{1b}[22m\u{1b}[24m")?;
- // TODO: this cancels bold + underline, if this behaviour is indeed correct, we
- // need to properly handle it in the struct methods etc like dim
+ write!(f, "\u{1b}[22m")?;
},
_ => {},
}
}
- // notice the order is important here, bold must be before underline
- // because the bold reset also resets underline, and would override it
- // otherwise
if let Some(ansi_code) = self.underline {
match ansi_code {
AnsiCode::Underline(None) => {