mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Fix order of insertion in load_cfg.
This commit is contained in:
		
							
								
								
									
										5
									
								
								cfg.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								cfg.c
									
									
									
									
									
								
							@@ -302,9 +302,10 @@ load_cfg(const char *path, struct client *c, struct cmdq_item *item, int quiet)
 | 
			
		||||
		free(buf);
 | 
			
		||||
 | 
			
		||||
		new_item = cmdq_get_command(cmdlist, NULL, NULL, 0);
 | 
			
		||||
		if (item != NULL)
 | 
			
		||||
		if (item != NULL) {
 | 
			
		||||
			cmdq_insert_after(item, new_item);
 | 
			
		||||
		else
 | 
			
		||||
			item = new_item;
 | 
			
		||||
		} else
 | 
			
		||||
			cmdq_append(c, new_item);
 | 
			
		||||
		cmd_list_free(cmdlist);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user