summaryrefslogtreecommitdiff
path: root/sway/commands/mode.c
diff options
context:
space:
mode:
authorBrian Ashworth <[email protected]>2018-05-30 22:23:11 -0400
committerBrian Ashworth <[email protected]>2018-06-02 08:07:44 -0400
commit8bfa2def8876bb507aa0174e6b159a0a226889b4 (patch)
treecb913921a89cf5436a6f0912fcdf680dde973216 /sway/commands/mode.c
parent51bb9d8573efce7c46703d070ad963ba7d8dee76 (diff)
Address first round of review for generic blocks
Diffstat (limited to 'sway/commands/mode.c')
-rw-r--r--sway/commands/mode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/mode.c b/sway/commands/mode.c
index 31d0f251..00331ccc 100644
--- a/sway/commands/mode.c
+++ b/sway/commands/mode.c
@@ -65,8 +65,8 @@ struct cmd_results *cmd_mode(int argc, char **argv) {
}
// Create binding
- struct cmd_results *result = subcommand(argv + 1, argc - 1, mode_handlers,
- sizeof(mode_handlers));
+ struct cmd_results *result = config_subcommand(argv + 1, argc - 1,
+ mode_handlers, sizeof(mode_handlers));
config->current_mode = config->modes->items[0];
return result;