commit 0cecbc706deb278a0c5479ba85a57cc726e5436f
parent e64806dea08d7f393f01db74fd65b4a9b3f466c2
Author: Andrew Laack <andrew@laack.co>
Date: Fri, 25 Sep 2026 12:13:33 -0500
Small refactor for ctrl key macro
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/main.cpp b/src/main.cpp
@@ -3,7 +3,6 @@
#include <algorithm>
#include <cassert>
#include <cstddef>
-#include <cwctype>
#include <filesystem>
#include <ncurses.h>
#include <string>
@@ -362,11 +361,9 @@ int main(int argc, char** argv) {
ds.y = 0;
} else if (input == 'G'){
ds.toLowest = true;
- } else if (input == 0x04){
- // ctrl+d
+ } else if (input == CTRL('d')){
ds.y += LINES / 2;
- } else if (input == 0x15) {
- // ctrl+u
+ } else if (input == CTRL('u')) {
ds.y -= LINES / 2;
} else if (input == 'r' || input == CTRL('r')){
b.refresh();