mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	config: do not reset pos when braces found
When a brace is found, the config file should not seek back to before the brace, otherwise the brace will be read multiple times.
This commit is contained in:
		
							parent
							
								
									33d9de88ef
								
							
						
					
					
						commit
						39975ccfb5
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -613,7 +613,9 @@ static int detect_brace(FILE *file) {
 | 
			
		|||
		}
 | 
			
		||||
	}
 | 
			
		||||
	free(line);
 | 
			
		||||
	fseek(file, pos, SEEK_SET);
 | 
			
		||||
	if (ret == 0) {
 | 
			
		||||
		fseek(file, pos, SEEK_SET);
 | 
			
		||||
	}
 | 
			
		||||
	return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue