mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Use the right index when adding item in choose-tree, from Thomas Adam.
This commit is contained in:
		@@ -212,7 +212,8 @@ windows_only:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			window_choose_add_window(wl->window->active,
 | 
								window_choose_add_window(wl->window->active,
 | 
				
			||||||
			    ctx, s2, wm, cur_win_template,
 | 
								    ctx, s2, wm, cur_win_template,
 | 
				
			||||||
			    final_win_action, idx_ses);
 | 
								    final_win_action,
 | 
				
			||||||
 | 
								    (wflag && !sflag) ? win_ses : idx_ses);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			free(final_win_action);
 | 
								free(final_win_action);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user