mirror of
https://github.com/NickHu/sway
synced 2024-12-26 21:58:30 +01:00
Fix quote stripping
Let's not use !strcmp(…) anymore.
This commit is contained in:
parent
1e65cc1ea6
commit
478b128c26
1 changed files with 2 additions and 1 deletions
|
@ -254,7 +254,8 @@ list_t *execute_command(char *_exec, struct sway_seat *seat,
|
|||
//TODO better handling of argv
|
||||
int argc;
|
||||
char **argv = split_args(cmd, &argc);
|
||||
if (!strcmp(argv[0], "exec") && !strcmp(argv[0], "exec_always")) {
|
||||
if (strcmp(argv[0], "exec") != 0 &&
|
||||
strcmp(argv[0], "exec_always") != 0) {
|
||||
int i;
|
||||
for (i = 1; i < argc; ++i) {
|
||||
if (*argv[i] == '\"' || *argv[i] == '\'') {
|
||||
|
|
Loading…
Reference in a new issue