diff options
| author | Kószó Attila <5616737+Kazimazi@users.noreply.github.com> | 2026-04-06 15:10:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-06 15:10:13 +0200 |
| commit | 9bf9bafa1b653e9a0329bfc4ee1efa0af14029c2 (patch) | |
| tree | ca68d65d88fe316e36bd8378089cf095fa260f63 /zellij-server | |
| parent | docs(changelog): update --name pr (diff) | |
| download | sl0ppij-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.rs | 7 |
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) => { |
