some more core refactor before fixing the mess

This commit is contained in:
🪞👃🪞 2024-09-06 20:11:10 +03:00
parent fe09536a45
commit 0bbf74e915
12 changed files with 31 additions and 28 deletions

View file

@ -77,7 +77,7 @@ impl<'a> Render<Tui> for RowSeparators<'a> {
if y >= to.buffer().area.height {
break
}
for x in area.x..area.width+area.y-2 {
for x in area.x..(area.width+area.y).saturating_sub(2) {
let cell = to.buffer().get_mut(x, y);
cell.modifier = Modifier::UNDERLINED;
cell.underline_color = Nord::SEPARATOR;