Mark redraw after page up/page down

This commit is contained in:
Jeremy Soller 2022-10-12 14:43:12 -06:00
parent 7e9721476d
commit eef1f2407b
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE

View file

@ -246,9 +246,11 @@ fn main() {
orbclient::K_DEL if event.pressed => buffer.action(TextAction::Delete),
orbclient::K_PGUP if event.pressed => {
scroll -= window_lines;
buffer.redraw = true;
},
orbclient::K_PGDN if event.pressed => {
scroll += window_lines;
buffer.redraw = true;
},
orbclient::K_0 if event.pressed && ctrl_pressed => {
font_size_i = font_size_default;