summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/command.c b/command.c
index 5b3411b..fd75189 100644
--- a/command.c
+++ b/command.c
@@ -37,6 +37,7 @@ static CommandName command_names[] = {
{"select-all", CMD_SELECT_ALL},
{"select-up-blank-line", CMD_SELECT_UP_BLANK_LINE},
{"select-down-blank-line", CMD_SELECT_DOWN_BLANK_LINE},
+ {"matching-bracket", CMD_MATCHING_BRACKET},
{"clear-selection", CMD_CLEAR_SELECTION},
{"page-up", CMD_PAGE_UP},
{"page-down", CMD_PAGE_DOWN},
@@ -292,7 +293,10 @@ void command_execute_ex(Ted *ted, Command c, CommandArgument full_argument, Comm
if (buffer)
buffer_cursor_move_to_prev_pos(buffer);
break;
-
+ case CMD_MATCHING_BRACKET:
+ if (buffer)
+ buffer_cursor_move_to_matching_bracket(buffer);
+ break;
case CMD_INSERT_TEXT: {
const char *str = argument_str;
if (str && buffer) {