mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Do not add height twice when calculating popup_mouse_top, from M Kelly.
This commit is contained in:
		@@ -175,7 +175,7 @@ cmd_display_menu_get_position(struct client *tc, struct cmdq_item *item,
 | 
				
			|||||||
		} else
 | 
							} else
 | 
				
			||||||
			format_add(ft, "popup_mouse_centre_y", "%ld", n);
 | 
								format_add(ft, "popup_mouse_centre_y", "%ld", n);
 | 
				
			||||||
		n = (long)event->m.y + h;
 | 
							n = (long)event->m.y + h;
 | 
				
			||||||
		if (n + h >= tty->sy)
 | 
							if (n >= tty->sy)
 | 
				
			||||||
			format_add(ft, "popup_mouse_top", "%u", tty->sy - 1);
 | 
								format_add(ft, "popup_mouse_top", "%u", tty->sy - 1);
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
			format_add(ft, "popup_mouse_top", "%ld", n);
 | 
								format_add(ft, "popup_mouse_top", "%ld", n);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user