mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Replace ## by # in format.
This commit is contained in:
		
							
								
								
									
										7
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								format.c
									
									
									
									
									
								
							@@ -321,6 +321,13 @@ format_expand(struct format_tree *ft, const char *fmt)
 | 
			
		||||
				break;
 | 
			
		||||
			fmt += n + 1;
 | 
			
		||||
			continue;
 | 
			
		||||
		case '#':
 | 
			
		||||
			while (len - off < 2) {
 | 
			
		||||
				buf = xrealloc(buf, 2, len);
 | 
			
		||||
				len *= 2;
 | 
			
		||||
			}
 | 
			
		||||
			buf[off++] = '#';
 | 
			
		||||
			continue;
 | 
			
		||||
		default:
 | 
			
		||||
			s = NULL;
 | 
			
		||||
			if (ch >= 'A' && ch <= 'Z')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user