diff options
Diffstat (limited to 'sway/commands/mark.c')
-rw-r--r-- | sway/commands/mark.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sway/commands/mark.c b/sway/commands/mark.c index c76e1d63..aa5f185c 100644 --- a/sway/commands/mark.c +++ b/sway/commands/mark.c | |||
@@ -20,8 +20,7 @@ struct cmd_results *cmd_mark(int argc, char **argv) { | |||
20 | } | 20 | } |
21 | struct sway_container *container = config->handler_context.container; | 21 | struct sway_container *container = config->handler_context.container; |
22 | if (!container) { | 22 | if (!container) { |
23 | return cmd_results_new(CMD_INVALID, "mark", | 23 | return cmd_results_new(CMD_INVALID, "Only containers can have marks"); |
24 | "Only containers can have marks"); | ||
25 | } | 24 | } |
26 | 25 | ||
27 | bool add = false, toggle = false; | 26 | bool add = false, toggle = false; |
@@ -33,7 +32,7 @@ struct cmd_results *cmd_mark(int argc, char **argv) { | |||
33 | } else if (strcmp(*argv, "--toggle") == 0) { | 32 | } else if (strcmp(*argv, "--toggle") == 0) { |
34 | toggle = true; | 33 | toggle = true; |
35 | } else { | 34 | } else { |
36 | return cmd_results_new(CMD_INVALID, "mark", | 35 | return cmd_results_new(CMD_INVALID, |
37 | "Unrecognized argument '%s'", *argv); | 36 | "Unrecognized argument '%s'", *argv); |
38 | } | 37 | } |
39 | ++argv; | 38 | ++argv; |
@@ -41,7 +40,7 @@ struct cmd_results *cmd_mark(int argc, char **argv) { | |||
41 | } | 40 | } |
42 | 41 | ||
43 | if (!argc) { | 42 | if (!argc) { |
44 | return cmd_results_new(CMD_INVALID, "mark", | 43 | return cmd_results_new(CMD_INVALID, |
45 | "Expected '[--add|--replace] [--toggle] <identifier>'"); | 44 | "Expected '[--add|--replace] [--toggle] <identifier>'"); |
46 | } | 45 | } |
47 | 46 | ||
@@ -65,5 +64,5 @@ struct cmd_results *cmd_mark(int argc, char **argv) { | |||
65 | view_execute_criteria(container->view); | 64 | view_execute_criteria(container->view); |
66 | } | 65 | } |
67 | 66 | ||
68 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 67 | return cmd_results_new(CMD_SUCCESS, NULL); |
69 | } | 68 | } |