mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Including error message when variable do not start with $
This commit is contained in:
		
							parent
							
								
									09670fc1a7
								
							
						
					
					
						commit
						1ab3e1023e
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -2152,6 +2152,10 @@ static struct cmd_results *cmd_set(int argc, char **argv) {
 | 
			
		|||
		return error;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
    if (argv[0][0] != '$') {
 | 
			
		||||
        return cmd_results_new(CMD_FAILURE, "set", "Malformed variable assignment, name has to start with $");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
	struct sway_variable *var = NULL;
 | 
			
		||||
	// Find old variable if it exists
 | 
			
		||||
	int i;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue