mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 21:14:10 +01:00
Do not strip quotes for cmd_mode
Like with cmd_bindsym and cmd_bindcode, the quotes should not be stripped for cmd_mode. cmd_mode performs its own stripping for the mode name and the only valid subcommands are cmd_bindsym and cmd_bindcode.
This commit is contained in:
parent
dbf8e1cead
commit
315bca176c
@ -420,6 +420,7 @@ struct cmd_results *config_command(char *exec) {
|
|||||||
// Strip quotes and unescape the string
|
// Strip quotes and unescape the string
|
||||||
for (int i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) {
|
for (int i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) {
|
||||||
if (handler->handle != cmd_exec && handler->handle != cmd_exec_always
|
if (handler->handle != cmd_exec && handler->handle != cmd_exec_always
|
||||||
|
&& handler->handle != cmd_mode
|
||||||
&& handler->handle != cmd_bindsym
|
&& handler->handle != cmd_bindsym
|
||||||
&& handler->handle != cmd_bindcode
|
&& handler->handle != cmd_bindcode
|
||||||
&& handler->handle != cmd_set
|
&& handler->handle != cmd_set
|
||||||
|
Loading…
Reference in New Issue
Block a user