fix width of 1st column

This commit is contained in:
🪞👃🪞 2025-03-09 05:02:12 +02:00
parent 2903d58b2d
commit b13ce4f0d0

View file

@ -55,7 +55,11 @@ impl<T> Columns<T> {
for (index, Column { width, .. }) in self.0.iter().enumerate() {
let w = *width as u16 + 1;
if index == column {
return (x.saturating_sub(1), w + 1)
if x > 0 {
return (x - 1, w + 1)
} else {
return (x, w)
}
} else {
x += w;
}