summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/command.c b/command.c
index e1c2ee3..c28bce5 100644
--- a/command.c
+++ b/command.c
@@ -147,6 +147,9 @@ void command_execute(Ted *ted, Command c, i64 argument) {
buffer_newline(buffer);
}
break;
+ case CMD_COMMENT_SELECTION:
+ if (buffer) buffer_toggle_comment_selection(buffer);
+ break;
case CMD_BACKSPACE:
if (buffer) buffer_backspace_at_cursor(buffer, argument);