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:
		
							
								
								
									
										1
									
								
								menu.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								menu.c
									
									
									
									
									
								
							@@ -111,6 +111,7 @@ menu_create(const char *title)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	menu = xcalloc(1, sizeof *menu);
 | 
						menu = xcalloc(1, sizeof *menu);
 | 
				
			||||||
	menu->title = xstrdup(title);
 | 
						menu->title = xstrdup(title);
 | 
				
			||||||
 | 
						menu->width = format_width(title);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return (menu);
 | 
						return (menu);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3167,7 +3167,7 @@ window_copy_match_at_cursor(struct window_copy_mode_data *data)
 | 
				
			|||||||
 	 */
 | 
					 	 */
 | 
				
			||||||
	for (at = start; at <= end; at++) {
 | 
						for (at = start; at <= end; at++) {
 | 
				
			||||||
		py = at / sx;
 | 
							py = at / sx;
 | 
				
			||||||
		px = at % (py * sx);
 | 
							px = at - (py * sx);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		grid_get_cell(gd, px, py, &gc);
 | 
							grid_get_cell(gd, px, py, &gc);
 | 
				
			||||||
		buf = xrealloc(buf, len + gc.data.size + 1);
 | 
							buf = xrealloc(buf, len + gc.data.size + 1);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user