mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										7
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								format.c
									
									
									
									
									
								
							@@ -5277,10 +5277,13 @@ format_grid_line(struct grid *gd, u_int y)
 | 
			
		||||
	for (x = 0; x < grid_line_length(gd, y); x++) {
 | 
			
		||||
		grid_get_cell(gd, x, y, &gc);
 | 
			
		||||
		if (gc.flags & GRID_FLAG_PADDING)
 | 
			
		||||
			break;
 | 
			
		||||
			continue;
 | 
			
		||||
 | 
			
		||||
		ud = xreallocarray(ud, size + 2, sizeof *ud);
 | 
			
		||||
		memcpy(&ud[size++], &gc.data, sizeof *ud);
 | 
			
		||||
		if (gc.flags & GRID_FLAG_TAB)
 | 
			
		||||
			utf8_set(&ud[size++], '\t');
 | 
			
		||||
		else
 | 
			
		||||
			memcpy(&ud[size++], &gc.data, sizeof *ud);
 | 
			
		||||
	}
 | 
			
		||||
	if (size != 0) {
 | 
			
		||||
		ud[size].size = 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user