0.3.4: fix the *other* off-by-1 error

This commit is contained in:
🪞👃🪞 2025-03-23 21:28:58 +02:00
parent 2f561edeea
commit b0bb7f818b
3 changed files with 7 additions and 7 deletions

View file

@ -39,7 +39,7 @@ impl<T: AsRef<str>> Content<TuiOut> for TrimStringRef<'_, T> {
break
}
if let Some(cell) = target.buffer.cell_mut(Position {
x: area.x() + width,
x: area.x() + width - 1,
y: area.y()
}) {
cell.set_char(c);