diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-24 15:46:08 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-24 15:46:08 -0500 |
commit | accf188e7c84ee627d5e4cfe12c141e929699830 (patch) | |
tree | 16ff19058ecae11b8cba9ba1d0d4f7bb1ae18184 /command.c | |
parent | 8c5eb397121c7fb3fa7feb2391d7c9b674b4190b (diff) |
scroll file selector when selected goes offscreen
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |