mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Set ACS flag for REP. Reported by Romain Francoise, GitHub issue 4182.
This commit is contained in:
		
							
								
								
									
										8
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								input.c
									
									
									
									
									
								
							@@ -1145,7 +1145,6 @@ input_print(struct input_ctx *ictx)
 | 
				
			|||||||
		ictx->cell.cell.attr |= GRID_ATTR_CHARSET;
 | 
							ictx->cell.cell.attr |= GRID_ATTR_CHARSET;
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		ictx->cell.cell.attr &= ~GRID_ATTR_CHARSET;
 | 
							ictx->cell.cell.attr &= ~GRID_ATTR_CHARSET;
 | 
				
			||||||
 | 
					 | 
				
			||||||
	utf8_set(&ictx->cell.cell.data, ictx->ch);
 | 
						utf8_set(&ictx->cell.cell.data, ictx->ch);
 | 
				
			||||||
	screen_write_collect_add(sctx, &ictx->cell.cell);
 | 
						screen_write_collect_add(sctx, &ictx->cell.cell);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1349,7 +1348,7 @@ input_csi_dispatch(struct input_ctx *ictx)
 | 
				
			|||||||
	struct screen_write_ctx	       *sctx = &ictx->ctx;
 | 
						struct screen_write_ctx	       *sctx = &ictx->ctx;
 | 
				
			||||||
	struct screen		       *s = sctx->s;
 | 
						struct screen		       *s = sctx->s;
 | 
				
			||||||
	struct input_table_entry       *entry;
 | 
						struct input_table_entry       *entry;
 | 
				
			||||||
	int				i, n, m, ek;
 | 
						int				i, n, m, ek, set;
 | 
				
			||||||
	u_int				cx, bg = ictx->cell.cell.bg;
 | 
						u_int				cx, bg = ictx->cell.cell.bg;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (ictx->flags & INPUT_DISCARD)
 | 
						if (ictx->flags & INPUT_DISCARD)
 | 
				
			||||||
@@ -1592,6 +1591,11 @@ input_csi_dispatch(struct input_ctx *ictx)
 | 
				
			|||||||
		if (~ictx->flags & INPUT_LAST)
 | 
							if (~ictx->flags & INPUT_LAST)
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							set = ictx->cell.set == 0 ? ictx->cell.g0set : ictx->cell.g1set;
 | 
				
			||||||
 | 
							if (set == 1)
 | 
				
			||||||
 | 
								ictx->cell.cell.attr |= GRID_ATTR_CHARSET;
 | 
				
			||||||
 | 
							else
 | 
				
			||||||
 | 
								ictx->cell.cell.attr &= ~GRID_ATTR_CHARSET;
 | 
				
			||||||
		utf8_copy(&ictx->cell.cell.data, &ictx->last);
 | 
							utf8_copy(&ictx->cell.cell.data, &ictx->last);
 | 
				
			||||||
		for (i = 0; i < n; i++)
 | 
							for (i = 0; i < n; i++)
 | 
				
			||||||
			screen_write_collect_add(sctx, &ictx->cell.cell);
 | 
								screen_write_collect_add(sctx, &ictx->cell.cell);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user