summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-24 15:46:08 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-24 15:46:08 -0500
commitaccf188e7c84ee627d5e4cfe12c141e929699830 (patch)
tree16ff19058ecae11b8cba9ba1d0d4f7bb1ae18184 /command.c
parent8c5eb397121c7fb3fa7feb2391d7c9b674b4190b (diff)
scroll file selector when selected goes offscreen
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index 40636b6..74a624a 100644
--- a/command.c
+++ b/command.c
@@ -38,11 +38,11 @@ void command_execute(Ted *ted, Command c, i64 argument) {
if (buffer) buffer_cursor_move_right(buffer, argument);
break;
case CMD_UP:
- if (file_selector->open) file_selector_up(file_selector, argument);
+ if (file_selector->open) file_selector_up(ted, file_selector, argument);
else if (buffer) buffer_cursor_move_up(buffer, argument);
break;
case CMD_DOWN:
- if (file_selector->open) file_selector_down(file_selector, argument);
+ if (file_selector->open) file_selector_down(ted, file_selector, argument);
else if (buffer) buffer_cursor_move_down(buffer, argument);
break;
case CMD_SELECT_LEFT: