mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Status line fixes: don't truncate status-right now the length calculation is
done for UTF-8, limit to the maximum length correctly when printing, and always print a space even if the left string is longer than the width available.
This commit is contained in:
		@@ -164,7 +164,7 @@ screen_write_vnputs(struct screen_write_ctx *ctx, ssize_t maxlen,
 | 
			
		||||
			gc->flags &= ~GRID_FLAG_UTF8;
 | 
			
		||||
 | 
			
		||||
		} else {
 | 
			
		||||
			if (maxlen > 0 && size > (size_t) maxlen)
 | 
			
		||||
			if (maxlen > 0 && size + 1 > (size_t) maxlen)
 | 
			
		||||
				break;
 | 
			
		||||
 | 
			
		||||
			size++;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user