mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Make window_pane_index work the same as window_index, from Ben Boeckel.
This commit is contained in:
		@@ -140,7 +140,8 @@ cmd_split_window_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
			
		||||
	environ_free(&env);
 | 
			
		||||
 | 
			
		||||
	if (args_has(args, 'P')) {
 | 
			
		||||
		paneidx = window_pane_index(wl->window, new_wp);
 | 
			
		||||
		if (window_pane_index(new_wp, &paneidx) != 0)
 | 
			
		||||
			fatalx("index not found");
 | 
			
		||||
		ctx->print(ctx, "%s:%u.%u", s->name, wl->idx, paneidx);
 | 
			
		||||
	}
 | 
			
		||||
	return (0);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user