mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Redraw any visible modes when status line changes so that formats like
the pane title are updated. GitHub issue 2487. Also a man page fix from jmc.
This commit is contained in:
		
							
								
								
									
										4
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tty.c
									
									
									
									
									
								
							@@ -2447,7 +2447,7 @@ tty_check_fg(struct tty *tty, int *palette, struct grid_cell *gc)
 | 
			
		||||
	/* Is this a 256-colour colour? */
 | 
			
		||||
	if (gc->fg & COLOUR_FLAG_256) {
 | 
			
		||||
		/* And not a 256 colour mode? */
 | 
			
		||||
		if (colours != 256) {
 | 
			
		||||
		if (colours < 256) {
 | 
			
		||||
			gc->fg = colour_256to16(gc->fg);
 | 
			
		||||
			if (gc->fg & 8) {
 | 
			
		||||
				gc->fg &= 7;
 | 
			
		||||
@@ -2500,7 +2500,7 @@ tty_check_bg(struct tty *tty, int *palette, struct grid_cell *gc)
 | 
			
		||||
		 * palette. Bold background doesn't exist portably, so just
 | 
			
		||||
		 * discard the bold bit if set.
 | 
			
		||||
		 */
 | 
			
		||||
		if (colours != 256) {
 | 
			
		||||
		if (colours < 256) {
 | 
			
		||||
			gc->bg = colour_256to16(gc->bg);
 | 
			
		||||
			if (gc->bg & 8) {
 | 
			
		||||
				gc->bg &= 7;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user