mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:44:18 +00:00 
			
		
		
		
	Treat entering or leaving a mode as pane changed.
This commit is contained in:
		
							
								
								
									
										4
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								window.c
									
									
									
									
									
								
							@@ -1066,7 +1066,7 @@ window_pane_set_mode(struct window_pane *wp, const struct window_mode *mode)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	if ((s = wp->mode->init(wp)) != NULL)
 | 
						if ((s = wp->mode->init(wp)) != NULL)
 | 
				
			||||||
		wp->screen = s;
 | 
							wp->screen = s;
 | 
				
			||||||
	wp->flags |= PANE_REDRAW;
 | 
						wp->flags |= (PANE_REDRAW|PANE_CHANGED);
 | 
				
			||||||
	return (0);
 | 
						return (0);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1080,7 +1080,7 @@ window_pane_reset_mode(struct window_pane *wp)
 | 
				
			|||||||
	wp->mode = NULL;
 | 
						wp->mode = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wp->screen = &wp->base;
 | 
						wp->screen = &wp->base;
 | 
				
			||||||
	wp->flags |= PANE_REDRAW;
 | 
						wp->flags |= (PANE_REDRAW|PANE_CHANGED);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user