mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +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);
 | 
							free(buf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		new_item = cmdq_get_command(cmdlist, NULL, NULL, 0);
 | 
							new_item = cmdq_get_command(cmdlist, NULL, NULL, 0);
 | 
				
			||||||
		if (item != NULL)
 | 
							if (item != NULL) {
 | 
				
			||||||
			cmdq_insert_after(item, new_item);
 | 
								cmdq_insert_after(item, new_item);
 | 
				
			||||||
		else
 | 
								item = new_item;
 | 
				
			||||||
 | 
							} else
 | 
				
			||||||
			cmdq_append(c, new_item);
 | 
								cmdq_append(c, new_item);
 | 
				
			||||||
		cmd_list_free(cmdlist);
 | 
							cmd_list_free(cmdlist);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user