mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Don't let force-width or force-height be < PANE_MINIMUM.
This commit is contained in:
		
							
								
								
									
										4
									
								
								resize.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								resize.c
									
									
									
									
									
								
							@@ -117,10 +117,10 @@ recalculate_sizes(void)
 | 
			
		||||
			continue;
 | 
			
		||||
 | 
			
		||||
		limit = options_get_number(&w->options, "force-width");
 | 
			
		||||
		if (limit != 0 && ssx > limit)
 | 
			
		||||
		if (limit >= PANE_MINIMUM && ssx > limit)
 | 
			
		||||
			ssx = limit;
 | 
			
		||||
		limit = options_get_number(&w->options, "force-height");
 | 
			
		||||
		if (limit != 0 && ssy > limit)
 | 
			
		||||
		if (limit >= PANE_MINIMUM && ssy > limit)
 | 
			
		||||
			ssy = limit;
 | 
			
		||||
 | 
			
		||||
		if (w->sx == ssx && w->sy == ssy)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user