mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Copy state directly rather than dereferencing wl (which could be NULL).
This commit is contained in:
		@@ -834,8 +834,8 @@ cmd_find_copy_state(struct cmd_find_state *dst, struct cmd_find_state *src)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	dst->s = src->s;
 | 
						dst->s = src->s;
 | 
				
			||||||
	dst->wl = src->wl;
 | 
						dst->wl = src->wl;
 | 
				
			||||||
	dst->idx = dst->wl->idx;
 | 
						dst->idx = src->idx;
 | 
				
			||||||
	dst->w = dst->wl->window;
 | 
						dst->w = src->w;
 | 
				
			||||||
	dst->wp = src->wp;
 | 
						dst->wp = src->wp;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user