summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/command.c b/command.c
index e9af9c3..0bad2a6 100644
--- a/command.c
+++ b/command.c
@@ -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);