aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2019-02-05 12:52:02 +0100
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-02-05 07:15:25 -0500
commit478b128c26057dcd7c97aaf5f91aa08dfce7d38f (patch)
treeb0a8c48666b3f972322d05743ee51515a7a1520e /sway/commands.c
parentexecute_command: dont strip quotes for exec_always (diff)
downloadsway-478b128c26057dcd7c97aaf5f91aa08dfce7d38f.tar.gz
sway-478b128c26057dcd7c97aaf5f91aa08dfce7d38f.tar.zst
sway-478b128c26057dcd7c97aaf5f91aa08dfce7d38f.zip
Fix quote stripping
Let's not use !strcmp(…) anymore.
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 82f41545..3fc4f86e 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -254,7 +254,8 @@ list_t *execute_command(char *_exec, struct sway_seat *seat,
254 //TODO better handling of argv 254 //TODO better handling of argv
255 int argc; 255 int argc;
256 char **argv = split_args(cmd, &argc); 256 char **argv = split_args(cmd, &argc);
257 if (!strcmp(argv[0], "exec") && !strcmp(argv[0], "exec_always")) { 257 if (strcmp(argv[0], "exec") != 0 &&
258 strcmp(argv[0], "exec_always") != 0) {
258 int i; 259 int i;
259 for (i = 1; i < argc; ++i) { 260 for (i = 1; i < argc; ++i) {
260 if (*argv[i] == '\"' || *argv[i] == '\'') { 261 if (*argv[i] == '\"' || *argv[i] == '\'') {