diff options
Diffstat (limited to 'sway/config.c')
| -rw-r--r-- | sway/config.c | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/sway/config.c b/sway/config.c index 445c3d55..0e41df04 100644 --- a/sway/config.c +++ b/sway/config.c @@ -657,6 +657,14 @@ char *do_var_replacement(char *str) {  				continue;  			}  		} +		// Unescape double $ and move on +		if (find[1] == '$') { +			size_t length = strlen(find + 1); +			strncpy(find, find + 1, length); +			find[length] = '\0'; +			++find; +			continue; +		}  		// Find matching variable  		for (i = 0; i < config->symbols->length; ++i) {  			struct sway_variable *var = config->symbols->items[i]; | 
