mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Rename cmdq_shared to cmdq_state which will better reflect what it is
(going to be) used for.
This commit is contained in:
		@@ -50,7 +50,7 @@ static enum cmd_retval
 | 
			
		||||
cmd_resize_pane_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
{
 | 
			
		||||
	struct args		*args = cmd_get_args(self);
 | 
			
		||||
	struct cmdq_shared	*shared = cmdq_get_shared(item);
 | 
			
		||||
	struct cmdq_state	*state = cmdq_get_state(item);
 | 
			
		||||
	struct cmd_find_state	*target = cmdq_get_target(item);
 | 
			
		||||
	struct window_pane	*wp = target->wp;
 | 
			
		||||
	struct winlink		*wl = target->wl;
 | 
			
		||||
@@ -76,12 +76,12 @@ cmd_resize_pane_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (args_has(args, 'M')) {
 | 
			
		||||
		if (cmd_mouse_window(&shared->event.m, &s) == NULL)
 | 
			
		||||
		if (cmd_mouse_window(&state->event.m, &s) == NULL)
 | 
			
		||||
			return (CMD_RETURN_NORMAL);
 | 
			
		||||
		if (c == NULL || c->session != s)
 | 
			
		||||
			return (CMD_RETURN_NORMAL);
 | 
			
		||||
		c->tty.mouse_drag_update = cmd_resize_pane_mouse_update;
 | 
			
		||||
		cmd_resize_pane_mouse_update(c, &shared->event.m);
 | 
			
		||||
		cmd_resize_pane_mouse_update(c, &state->event.m);
 | 
			
		||||
		return (CMD_RETURN_NORMAL);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user