mirror of
https://gitlab.com/arnekeller/ascii-table.git
synced 2024-12-04 21:49:08 +00:00
save game
This commit is contained in:
parent
7d75017e72
commit
36113ce9f7
11
src/lib.rs
11
src/lib.rs
@ -360,12 +360,19 @@ impl SmartString {
|
|||||||
}
|
}
|
||||||
buf.push(ch);
|
buf.push(ch);
|
||||||
} else {
|
} else {
|
||||||
if ch != '\u{1b}' && ch != '[' && ch != ';' && ch != 'm' && !('0'..'9').contains(&ch) {
|
if ch == 'm' {
|
||||||
|
buf.push(ch);
|
||||||
fragments.push((visible, buf));
|
fragments.push((visible, buf));
|
||||||
visible = !visible;
|
visible = !visible;
|
||||||
buf = String::new();
|
buf = String::new();
|
||||||
|
} else if ch != '[' && ch != ';' && !('0'..'9').contains(&ch) {
|
||||||
|
fragments.push((visible, buf));
|
||||||
|
visible = !visible;
|
||||||
|
buf = String::new();
|
||||||
|
buf.push(ch);
|
||||||
|
} else {
|
||||||
|
buf.push(ch);
|
||||||
}
|
}
|
||||||
buf.push(ch);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !buf.is_empty() {
|
if !buf.is_empty() {
|
||||||
|
Loading…
Reference in New Issue
Block a user