mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Prevent tiled producing a corrupt layout when only one column is needed,
from Karl Ferdinand Ebert.
This commit is contained in:
		@@ -519,7 +519,7 @@ layout_set_tiled(struct window *w)
 | 
				
			|||||||
		TAILQ_INSERT_TAIL(&lc->cells, lcrow, entry);
 | 
							TAILQ_INSERT_TAIL(&lc->cells, lcrow, entry);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* If only one column, just use the row directly. */
 | 
							/* If only one column, just use the row directly. */
 | 
				
			||||||
		if (n - (j * columns) == 1) {
 | 
							if (n - (j * columns) == 1 || columns == 1) {
 | 
				
			||||||
			layout_make_leaf(lcrow, wp);
 | 
								layout_make_leaf(lcrow, wp);
 | 
				
			||||||
			wp = TAILQ_NEXT(wp, entry);
 | 
								wp = TAILQ_NEXT(wp, entry);
 | 
				
			||||||
			continue;
 | 
								continue;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user