mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:44:18 +00:00 
			
		
		
		
	Use ACS characters for choose-tree arrows based on diff from Romain
Francoise.
This commit is contained in:
		@@ -149,8 +149,10 @@ cmd_choose_tree_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
			
		||||
	 * without any padding.
 | 
			
		||||
	 */
 | 
			
		||||
	if (wflag && sflag) {
 | 
			
		||||
		xasprintf(&final_win_template_middle, " |-> %s", win_template);
 | 
			
		||||
		xasprintf(&final_win_template_last, " \\-> %s", win_template);
 | 
			
		||||
		xasprintf(&final_win_template_middle,
 | 
			
		||||
		    " \001tq\001> %s", win_template);
 | 
			
		||||
		xasprintf(&final_win_template_last,
 | 
			
		||||
		    " \001mq\001> %s", win_template);
 | 
			
		||||
	} else if (wflag) {
 | 
			
		||||
		final_win_template_middle = xstrdup(win_template);
 | 
			
		||||
		final_win_template_last = xstrdup(win_template);
 | 
			
		||||
 
 | 
			
		||||
@@ -210,8 +210,12 @@ screen_write_vnputs(struct screen_write_ctx *ctx, ssize_t maxlen,
 | 
			
		||||
			if (maxlen > 0 && size + 1 > (size_t) maxlen)
 | 
			
		||||
				break;
 | 
			
		||||
 | 
			
		||||
			size++;
 | 
			
		||||
			screen_write_putc(ctx, gc, *ptr);
 | 
			
		||||
			if (*ptr == '\001')
 | 
			
		||||
				gc->attr ^= GRID_ATTR_CHARSET;
 | 
			
		||||
			else {
 | 
			
		||||
				size++;
 | 
			
		||||
				screen_write_putc(ctx, gc, *ptr);
 | 
			
		||||
			}
 | 
			
		||||
			ptr++;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user