aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/bind.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-01 10:39:36 -0400
committerGitHub <noreply@github.com>2018-09-01 10:39:36 -0400
commit89a045835f284e368f36ea5b508f70a41f65d6be (patch)
tree7c966de2d4c3dacdbf337a7c817bf6aa6701d1ab /sway/commands/bind.c
parent692dc55ecaff66cf379aaf05a4a0c86f517a4dc1 (diff)
parent7e81e58e7d1f540e448f3827751f75bf54b1fe9f (diff)
Merge pull request #2547 from RyanDwyer/fix-reload-crash
Fix crash on reload
Diffstat (limited to 'sway/commands/bind.c')
-rw-r--r--sway/commands/bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c
index 8270b958..b134c92f 100644
--- a/sway/commands/bind.c
+++ b/sway/commands/bind.c
@@ -310,7 +310,7 @@ void seat_execute_command(struct sway_seat *seat, struct sway_binding *binding)
bool reload = false;
// if this is a reload command we need to make a duplicate of the
// binding since it will be gone after the reload has completed.
- if (strcasecmp(binding->command, "reload") == 0) {
+ if (strcasestr(binding->command, "reload")) {
reload = true;
binding_copy = sway_binding_dup(binding);
if (!binding_copy) {