mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Set visited flag on last windows when linking session.
This commit is contained in:
		@@ -687,8 +687,10 @@ session_group_synchronize1(struct session *target, struct session *s)
 | 
				
			|||||||
	TAILQ_INIT(&s->lastw);
 | 
						TAILQ_INIT(&s->lastw);
 | 
				
			||||||
	TAILQ_FOREACH(wl, &old_lastw, sentry) {
 | 
						TAILQ_FOREACH(wl, &old_lastw, sentry) {
 | 
				
			||||||
		wl2 = winlink_find_by_index(&s->windows, wl->idx);
 | 
							wl2 = winlink_find_by_index(&s->windows, wl->idx);
 | 
				
			||||||
		if (wl2 != NULL)
 | 
							if (wl2 != NULL) {
 | 
				
			||||||
			TAILQ_INSERT_TAIL(&s->lastw, wl2, sentry);
 | 
								TAILQ_INSERT_TAIL(&s->lastw, wl2, sentry);
 | 
				
			||||||
 | 
								wl2->flags |= WINLINK_VISITED;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Then free the old winlinks list. */
 | 
						/* Then free the old winlinks list. */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user