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:
		@@ -2038,7 +2038,7 @@ window_copy_cursor_down(struct window_pane *wp, int scroll_only)
 | 
			
		||||
		data->lastsx = ox;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (s->sel.lineflag == LINE_SEL_RIGHT_LEFT && oy == data->sely)
 | 
			
		||||
	if (s->sel.lineflag == LINE_SEL_RIGHT_LEFT && oy == data->endsely)
 | 
			
		||||
		window_copy_other_end(wp);
 | 
			
		||||
 | 
			
		||||
	data->cx = data->lastcx;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										14
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								window.c
									
									
									
									
									
								
							@@ -1320,17 +1320,18 @@ window_pane_find_up(struct window_pane *wp)
 | 
			
		||||
{
 | 
			
		||||
	struct window_pane	*next, *best, **list;
 | 
			
		||||
	u_int			 edge, left, right, end, size;
 | 
			
		||||
	int			 found;
 | 
			
		||||
	int			 status, found;
 | 
			
		||||
 | 
			
		||||
	if (wp == NULL || !window_pane_visible(wp))
 | 
			
		||||
		return (NULL);
 | 
			
		||||
	status = options_get_number(wp->window->options, "pane-border-status");
 | 
			
		||||
 | 
			
		||||
	list = NULL;
 | 
			
		||||
	size = 0;
 | 
			
		||||
 | 
			
		||||
	edge = wp->yoff;
 | 
			
		||||
	if (edge == 0)
 | 
			
		||||
		edge = wp->window->sy + 1;
 | 
			
		||||
	if (edge == (status == 1 ? 1 : 0))
 | 
			
		||||
		edge = wp->window->sy + 1 - (status == 2 ? 1 : 0);
 | 
			
		||||
 | 
			
		||||
	left = wp->xoff;
 | 
			
		||||
	right = wp->xoff + wp->sx;
 | 
			
		||||
@@ -1366,17 +1367,18 @@ window_pane_find_down(struct window_pane *wp)
 | 
			
		||||
{
 | 
			
		||||
	struct window_pane	*next, *best, **list;
 | 
			
		||||
	u_int			 edge, left, right, end, size;
 | 
			
		||||
	int			 found;
 | 
			
		||||
	int			 status, found;
 | 
			
		||||
 | 
			
		||||
	if (wp == NULL || !window_pane_visible(wp))
 | 
			
		||||
		return (NULL);
 | 
			
		||||
	status = options_get_number(wp->window->options, "pane-border-status");
 | 
			
		||||
 | 
			
		||||
	list = NULL;
 | 
			
		||||
	size = 0;
 | 
			
		||||
 | 
			
		||||
	edge = wp->yoff + wp->sy + 1;
 | 
			
		||||
	if (edge >= wp->window->sy)
 | 
			
		||||
		edge = 0;
 | 
			
		||||
	if (edge >= wp->window->sy - (status == 2 ? 1 : 0))
 | 
			
		||||
		edge = (status == 1 ? 1 : 0);
 | 
			
		||||
 | 
			
		||||
	left = wp->xoff;
 | 
			
		||||
	right = wp->xoff + wp->sx;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user