From c94ef2721d33e9678cbfa5cb1b3dd5770279bcec Mon Sep 17 00:00:00 2001 From: markichnich Date: Thu, 24 Aug 2023 19:20:39 +0200 Subject: [PATCH] fix cursor placement for some terminal sizes --- src/ui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui.rs b/src/ui.rs index 436edf2..a6ad632 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -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);