mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 08:16:08 +00:00 
			
		
		
		
	Merge branch 'obsd-master' into master
This commit is contained in:
		@@ -175,7 +175,7 @@ cmd_display_menu_get_position(struct client *tc, struct cmdq_item *item,
 | 
			
		||||
			format_add(ft, "popup_mouse_centre_y", "%ld", n);
 | 
			
		||||
		n = (long)event->m.y + h;
 | 
			
		||||
		if (n + h >= tty->sy)
 | 
			
		||||
			format_add(ft, "popup_mouse_top", "%u", tty->sy - h);
 | 
			
		||||
			format_add(ft, "popup_mouse_top", "%u", tty->sy - 1);
 | 
			
		||||
		else
 | 
			
		||||
			format_add(ft, "popup_mouse_top", "%ld", n);
 | 
			
		||||
		n = event->m.y - h;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								format.c
									
									
									
									
									
								
							@@ -4809,7 +4809,8 @@ format_grid_word(struct grid *gd, u_int x, u_int y)
 | 
			
		||||
		grid_get_cell(gd, x, y, &gc);
 | 
			
		||||
		if (gc.flags & GRID_FLAG_PADDING)
 | 
			
		||||
			break;
 | 
			
		||||
		if (utf8_cstrhas(ws, &gc.data)) {
 | 
			
		||||
		if (utf8_cstrhas(ws, &gc.data) ||
 | 
			
		||||
		    (gc.data.size == 1 && *gc.data.data == ' ')) {
 | 
			
		||||
			found = 1;
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
@@ -4846,7 +4847,8 @@ format_grid_word(struct grid *gd, u_int x, u_int y)
 | 
			
		||||
		grid_get_cell(gd, x, y, &gc);
 | 
			
		||||
		if (gc.flags & GRID_FLAG_PADDING)
 | 
			
		||||
			break;
 | 
			
		||||
		if (utf8_cstrhas(ws, &gc.data))
 | 
			
		||||
		if (utf8_cstrhas(ws, &gc.data) ||
 | 
			
		||||
		    (gc.data.size == 1 && *gc.data.data == ' '))
 | 
			
		||||
			break;
 | 
			
		||||
 | 
			
		||||
		ud = xreallocarray(ud, size + 2, sizeof *ud);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user