summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-31 14:11:25 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-31 14:11:25 -0500
commitd7ae78179cf18bc79703ac2199e0ae03e556430f (patch)
tree3b580699a0a9f5dc2fb41d54936b19aeb90904e9 /command.c
parent185bf5b364efb4d7885ff5adcb69204e892ff5f7 (diff)
page up/down
Diffstat (limited to 'command.c')
-rw-r--r--command.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/command.c b/command.c
index 4f1bb89..69ce9ee 100644
--- a/command.c
+++ b/command.c
@@ -100,6 +100,13 @@ void command_execute(Ted *ted, Command c, i64 argument) {
case CMD_DELETE_WORD:
buffer_delete_words_at_cursor(buffer, argument);
break;
+
+ case CMD_PAGE_DOWN:
+ buffer_page_down(buffer, argument);
+ break;
+ case CMD_PAGE_UP:
+ buffer_page_up(buffer, argument);
+ break;
case CMD_SAVE:
buffer_save(buffer);