Skip to content

Commit ac5c23b

Browse files
committed
refactor: Reorder SGR match arms to follow numerical order
1 parent 2234b68 commit ac5c23b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/anstyle-svg/src/adapter.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ impl anstyle_parse::Perform for AnsiCapture {
138138
style = style.underline();
139139
state = CsiState::Underline;
140140
}
141-
(CsiState::Normal, 21) => {
142-
style |= anstyle::Effects::DOUBLE_UNDERLINE;
143-
break;
144-
}
145141
(CsiState::Normal, 7) => {
146142
style = style.invert();
147143
break;
@@ -154,6 +150,10 @@ impl anstyle_parse::Perform for AnsiCapture {
154150
style = style.strikethrough();
155151
break;
156152
}
153+
(CsiState::Normal, 21) => {
154+
style |= anstyle::Effects::DOUBLE_UNDERLINE;
155+
break;
156+
}
157157
(CsiState::Normal, 30..=37) => {
158158
let color = to_ansi_color(value - 30).expect("within 4-bit range");
159159
style = style.fg_color(Some(color.into()));

0 commit comments

Comments
 (0)