diff options
Diffstat (limited to 'sway/commands/bar/strip_workspace_numbers.c')
-rw-r--r-- | sway/commands/bar/strip_workspace_numbers.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/commands/bar/strip_workspace_numbers.c b/sway/commands/bar/strip_workspace_numbers.c index 56c4c4a1..2d7fe1a7 100644 --- a/sway/commands/bar/strip_workspace_numbers.c +++ b/sway/commands/bar/strip_workspace_numbers.c | |||
@@ -10,10 +10,7 @@ struct cmd_results *bar_cmd_strip_workspace_numbers(int argc, char **argv) { | |||
10 | "strip_workspace_numbers", EXPECTED_EQUAL_TO, 1))) { | 10 | "strip_workspace_numbers", EXPECTED_EQUAL_TO, 1))) { |
11 | return error; | 11 | return error; |
12 | } | 12 | } |
13 | if (!config->current_bar) { | 13 | |
14 | return cmd_results_new(CMD_FAILURE, "No bar defined."); | ||
15 | } | ||
16 | |||
17 | config->current_bar->strip_workspace_numbers = | 14 | config->current_bar->strip_workspace_numbers = |
18 | parse_boolean(argv[0], config->current_bar->strip_workspace_numbers); | 15 | parse_boolean(argv[0], config->current_bar->strip_workspace_numbers); |
19 | 16 | ||