mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Sync OpenBSD patchset 950:
Add pane-base-index option, from Ben Barbour.
This commit is contained in:
		
							
								
								
									
										4
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								window.c
									
									
									
									
									
								
							@@ -451,7 +451,7 @@ window_pane_at_index(struct window *w, u_int idx)
 | 
			
		||||
	struct window_pane	*wp;
 | 
			
		||||
	u_int			 n;
 | 
			
		||||
 | 
			
		||||
	n = 0;
 | 
			
		||||
	n = options_get_number(&w->options, "pane-base-index");
 | 
			
		||||
	TAILQ_FOREACH(wp, &w->panes, entry) {
 | 
			
		||||
		if (n == idx)
 | 
			
		||||
			return (wp);
 | 
			
		||||
@@ -489,7 +489,7 @@ window_pane_index(struct window *w, struct window_pane *wp)
 | 
			
		||||
	struct window_pane	*wq;
 | 
			
		||||
	u_int			 n;
 | 
			
		||||
 | 
			
		||||
	n = 0;
 | 
			
		||||
	n = options_get_number(&w->options, "pane-base-index");
 | 
			
		||||
	TAILQ_FOREACH(wq, &w->panes, entry) {
 | 
			
		||||
		if (wp == wq)
 | 
			
		||||
			break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user