Fixed pgdn/up page size. - icy_draw - icy_draw is the successor to mystic draw. fork / mirror
(HTM) git clone https://git.drkhsh.at/icy_draw.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 411e23b8f1fa10a4ed6b67b578ffbd87d2c44293
(DIR) parent 88ee4fb050ff59a9c22b4fd5b8c370a4099cb1af
(HTM) Author: Mike Krüger <mkrueger@posteo.de>
Date: Wed, 4 Oct 2023 14:59:31 +0200
Fixed pgdn/up page size.
Diffstat:
M src/model/tools/click_imp.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/model/tools/click_imp.rs b/src/model/tools/click_imp.rs
@@ -212,13 +212,13 @@ impl Tool for ClickTool {
}
MKey::PageDown => {
let height = editor.buffer_view.lock().calc.terminal_rect.height();
- let char_height = editor.buffer_view.lock().calc.font_height;
+ let char_height = editor.buffer_view.lock().calc.char_size.y;
let pg_size = (height / char_height) as i32;
editor.set_caret(pos.x, pos.y + pg_size);
}
MKey::PageUp => {
let height = editor.buffer_view.lock().calc.terminal_rect.height();
- let char_height = editor.buffer_view.lock().calc.font_height;
+ let char_height = editor.buffer_view.lock().calc.char_size.y;
let pg_size = (height / char_height) as i32;
editor.set_caret(pos.x, pos.y - pg_size);
}