mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
execute_command: do not strip qoutes for cmd_mode
`cmd_mode` performs its own quote stripping for the mode string to avoid double stripping quotes for `cmd_bindcode` and `cmd_bindsym` in `config_command` and `execute_command`. Stripping quotes in `execute_command` for `cmd_mode` will also result in double stripping, which will cause issues for any mode string with spaces, such as pango markup.
This commit is contained in:
parent
b00b0fb9d3
commit
efe370ba12
1 changed files with 2 additions and 1 deletions
|
@ -255,7 +255,8 @@ list_t *execute_command(char *_exec, struct sway_seat *seat,
|
||||||
int argc;
|
int argc;
|
||||||
char **argv = split_args(cmd, &argc);
|
char **argv = split_args(cmd, &argc);
|
||||||
if (strcmp(argv[0], "exec") != 0 &&
|
if (strcmp(argv[0], "exec") != 0 &&
|
||||||
strcmp(argv[0], "exec_always") != 0) {
|
strcmp(argv[0], "exec_always") != 0 &&
|
||||||
|
strcmp(argv[0], "mode") != 0) {
|
||||||
int i;
|
int i;
|
||||||
for (i = 1; i < argc; ++i) {
|
for (i = 1; i < argc; ++i) {
|
||||||
if (*argv[i] == '\"' || *argv[i] == '\'') {
|
if (*argv[i] == '\"' || *argv[i] == '\'') {
|
||||||
|
|
Loading…
Reference in a new issue