covered_window_rows

This commit is contained in:
alice pellerin
2026-03-19 02:00:05 -05:00
parent ce2d753f96
commit 5aa64bd7dc
4 changed files with 20 additions and 7 deletions
+5 -1
View File
@@ -446,7 +446,11 @@ impl App {
impl App {
// in bytes
const fn screen_size(&self) -> usize {
self.window_rows * BYTES_PER_LINE
self.hex_rows() * BYTES_PER_LINE
}
const fn hex_rows(&self) -> usize {
self.window_rows - self.covered_window_rows
}
const fn clamp_screen_to_cursor(&mut self) {