summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-04 12:51:35 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-04 12:51:35 -0500
commitb006db3fe4da1beb38909232ceaf1c370415c61a (patch)
tree72b3faba6c8a9895fe7aecdd42b582b59e9141e5 /main.c
parent1656628aaa62cf4a3c29408eb24e3de1486573fb (diff)
fix arrow keys with tabs
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index 9351436..ac5fcc4 100644
--- a/main.c
+++ b/main.c
@@ -110,6 +110,12 @@ int main(void) {
case SDLK_LEFT:
buffer_cursor_move_left(&text_buffer);
break;
+ case SDLK_UP:
+ buffer_cursor_move_up(&text_buffer);
+ break;
+ case SDLK_DOWN:
+ buffer_cursor_move_down(&text_buffer);
+ break;
}
} break;
}