mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	If looking for an index, don't fill in window when given a session.
This commit is contained in:
		@@ -434,9 +434,11 @@ cmd_find_get_window(struct cmd_find_state *fs, const char *window)
 | 
			
		||||
 | 
			
		||||
	/* Otherwise try as a session itself. */
 | 
			
		||||
	if (cmd_find_get_session(fs, window) == 0) {
 | 
			
		||||
		fs->wl = fs->s->curw;
 | 
			
		||||
		fs->idx = fs->wl->idx;
 | 
			
		||||
		fs->w = fs->wl->window;
 | 
			
		||||
		if (~fs->flags & CMD_FIND_WINDOW_INDEX) {
 | 
			
		||||
			fs->wl = fs->s->curw;
 | 
			
		||||
			fs->w = fs->wl->window;
 | 
			
		||||
			fs->idx = fs->wl->idx;
 | 
			
		||||
		}
 | 
			
		||||
		return (0);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user