diff options
Diffstat (limited to 'sway/commands/bar/bind.c')
-rw-r--r-- | sway/commands/bar/bind.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/commands/bar/bind.c b/sway/commands/bar/bind.c index f94b4811..b4b5bc45 100644 --- a/sway/commands/bar/bind.c +++ b/sway/commands/bar/bind.c | |||
@@ -75,9 +75,6 @@ static struct cmd_results *bar_cmd_bind(int argc, char **argv, bool code, | |||
75 | if ((error = checkarg(argc, command, EXPECTED_AT_LEAST, minargs))) { | 75 | if ((error = checkarg(argc, command, EXPECTED_AT_LEAST, minargs))) { |
76 | return error; | 76 | return error; |
77 | } | 77 | } |
78 | if (!config->current_bar) { | ||
79 | return cmd_results_new(CMD_FAILURE, "No bar defined."); | ||
80 | } | ||
81 | 78 | ||
82 | struct bar_binding *binding = calloc(1, sizeof(struct bar_binding)); | 79 | struct bar_binding *binding = calloc(1, sizeof(struct bar_binding)); |
83 | if (!binding) { | 80 | if (!binding) { |