mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Stop caring about empty commands, just treat as a null command.
This commit is contained in:
		
							
								
								
									
										4
									
								
								cfg.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								cfg.c
									
									
									
									
									
								
							@@ -125,8 +125,6 @@ load_cfg(const char *path, struct client *c, struct cmdq_item *item, int flags,
 | 
			
		||||
 | 
			
		||||
	pr = cmd_parse_from_file(f, &pi);
 | 
			
		||||
	fclose(f);
 | 
			
		||||
	if (pr->status == CMD_PARSE_EMPTY)
 | 
			
		||||
		return (0);
 | 
			
		||||
	if (pr->status == CMD_PARSE_ERROR) {
 | 
			
		||||
		cfg_add_cause("%s", pr->error);
 | 
			
		||||
		free(pr->error);
 | 
			
		||||
@@ -179,8 +177,6 @@ load_cfg_from_buffer(const void *buf, size_t len, const char *path,
 | 
			
		||||
	pi.c = c;
 | 
			
		||||
 | 
			
		||||
	pr = cmd_parse_from_buffer(buf, len, &pi);
 | 
			
		||||
	if (pr->status == CMD_PARSE_EMPTY)
 | 
			
		||||
		return (0);
 | 
			
		||||
	if (pr->status == CMD_PARSE_ERROR) {
 | 
			
		||||
		cfg_add_cause("%s", pr->error);
 | 
			
		||||
		free(pr->error);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user