fix cursor placement for some terminal sizes

This commit is contained in:
markichnich 2023-08-24 19:20:39 +02:00
parent b2f2e0fad2
commit c94ef2721d

View File

@ -221,7 +221,7 @@ where
let (row, col) = (state.cur_row, state.cur_col);
let (x, y) = (
(self.width / 2 - 14) as u16,
(self.height / 2 - 7 + (self.height & 1)) as u16,
(self.height / 2 - 6) as u16,
);
let (x, y) = (x + 2, y + 1);
let (x, y) = (x + 2 * col as u16, y + row as u16);