This commit is contained in:
sxyazi 2024-07-25 07:14:14 +08:00
parent a5ee38bb00
commit be3b775a39
No known key found for this signature in database

View file

@ -44,7 +44,7 @@ impl Term {
SHAPE.store(
s.split_once("\x1bP1$r")
.and_then(|(_, s)| s.bytes().next())
.filter(|&b| matches!(b, b'0'..b'6'))
.filter(|&b| matches!(b, b'0'..=b'6'))
.map_or(0, |b| b - b'0'),
Ordering::Relaxed,
);