mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Do not pass a state into commands when fired on individual items in tree
mode, rely on the %% target substitution in the command for the chosen pane and leave the default target as the current pane (where the mode is). Otherwise, joinp and similar end up with -t and -s the same. Reported by Jacob Niehus in GitHub issue 960.
This commit is contained in:
		@@ -699,7 +699,7 @@ window_tree_key(struct window_pane *wp, struct client *c,
 | 
				
			|||||||
		name = window_tree_get_target(item, &fs);
 | 
							name = window_tree_get_target(item, &fs);
 | 
				
			||||||
		window_pane_reset_mode(wp);
 | 
							window_pane_reset_mode(wp);
 | 
				
			||||||
		if (name != NULL)
 | 
							if (name != NULL)
 | 
				
			||||||
			mode_tree_run_command(c, &fs, command, name);
 | 
								mode_tree_run_command(c, NULL, command, name);
 | 
				
			||||||
		free(name);
 | 
							free(name);
 | 
				
			||||||
		free(command);
 | 
							free(command);
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user