diff options
author | pommicket <pommicket@gmail.com> | 2023-03-02 10:52:08 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-03-02 10:52:08 -0500 |
commit | 4aebef26deaed5d26fe450193da044f7734051e1 (patch) | |
tree | 1bc66ba0db2e41bb78241eda9bf14466e8538f37 /command.c | |
parent | eddcc7e8c6c02970ac658024b3a8c6b5f416c8a5 (diff) |
:previous-position
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -39,6 +39,7 @@ static CommandName command_names[] = { {"select-down-blank-line", CMD_SELECT_DOWN_BLANK_LINE}, {"page-up", CMD_PAGE_UP}, {"page-down", CMD_PAGE_DOWN}, + {"previous-position", CMD_PREVIOUS_POSITION}, {"tab", CMD_TAB}, {"backtab", CMD_BACKTAB}, {"insert-text", CMD_INSERT_TEXT}, @@ -265,6 +266,9 @@ void command_execute(Ted *ted, Command c, i64 argument) { if (buffer) buffer_select_down_blank_lines(buffer, argument); autocomplete_close(ted); break; + case CMD_PREVIOUS_POSITION: + buffer_cursor_move_to_prev_pos(buffer); + break; case CMD_INSERT_TEXT: { const char *str = arg_get_string(ted, argument); |