mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Use VIS_CSTYLE for paste buffers also.
This commit is contained in:
		
							
								
								
									
										2
									
								
								paste.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								paste.c
									
									
									
									
									
								
							@@ -311,7 +311,7 @@ paste_make_sample(struct paste_buffer *pb)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	char		*buf;
 | 
						char		*buf;
 | 
				
			||||||
	size_t		 len, used;
 | 
						size_t		 len, used;
 | 
				
			||||||
	const int	 flags = VIS_OCTAL|VIS_TAB|VIS_NL;
 | 
						const int	 flags = VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL;
 | 
				
			||||||
	const size_t	 width = 200;
 | 
						const size_t	 width = 200;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	len = pb->size;
 | 
						len = pb->size;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -231,7 +231,7 @@ window_buffer_draw(__unused void *modedata, void *itemdata,
 | 
				
			|||||||
		while (end != pdata + psize && *end != '\n')
 | 
							while (end != pdata + psize && *end != '\n')
 | 
				
			||||||
			end++;
 | 
								end++;
 | 
				
			||||||
		buf = xreallocarray(buf, 4, end - start + 1);
 | 
							buf = xreallocarray(buf, 4, end - start + 1);
 | 
				
			||||||
		utf8_strvis(buf, start, end - start, VIS_OCTAL|VIS_TAB);
 | 
							utf8_strvis(buf, start, end - start, VIS_OCTAL|VIS_CSTYLE|VIS_TAB);
 | 
				
			||||||
		if (*buf != '\0') {
 | 
							if (*buf != '\0') {
 | 
				
			||||||
			screen_write_cursormove(ctx, cx, cy + i, 0);
 | 
								screen_write_cursormove(ctx, cx, cy + i, 0);
 | 
				
			||||||
			screen_write_nputs(ctx, sx, &grid_default_cell, "%s",
 | 
								screen_write_nputs(ctx, sx, &grid_default_cell, "%s",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user