summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ted.c b/ted.c
index 75713c6..7d51e04 100644
--- a/ted.c
+++ b/ted.c
@@ -733,8 +733,8 @@ void ted_press_key(Ted *ted, SDL_Keycode keycode, SDL_Keymod modifier) {
} else if (key_actions[mid].key_combo.value > key_combo.value) {
hi = mid;
} else {
- CommandContext context = {0};
- command_execute_ex(ted, key_actions[mid].command, key_actions[mid].argument, context);
+ const CommandContext context = {0};
+ command_execute_ex(ted, key_actions[mid].command, &key_actions[mid].argument, &context);
return;
}
}