mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Use the correct size for new windows when window-size is latest,
reported by Vamsi Krishna Avula in GitHub issue 1917.
This commit is contained in:
		
							
								
								
									
										2
									
								
								spawn.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								spawn.c
									
									
									
									
									
								
							@@ -155,7 +155,7 @@ spawn_window(struct spawn_context *sc, char **cause)
 | 
			
		||||
			xasprintf(cause, "couldn't add window %d", idx);
 | 
			
		||||
			return (NULL);
 | 
			
		||||
		}
 | 
			
		||||
		default_window_size(s, NULL, &sx, &sy, -1);
 | 
			
		||||
		default_window_size(sc->c, s, NULL, &sx, &sy, -1);
 | 
			
		||||
		if ((w = window_create(sx, sy)) == NULL) {
 | 
			
		||||
			winlink_remove(&s->windows, sc->wl);
 | 
			
		||||
			xasprintf(cause, "couldn't create window %d", idx);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user