mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Do not loop forever if a menu item contains invisible characters,
reported by Thomas Sattler.
This commit is contained in:
		@@ -791,7 +791,8 @@ format_width(const char *expanded)
 | 
			
		||||
		} else if (*cp > 0x1f && *cp < 0x7f) {
 | 
			
		||||
			width++;
 | 
			
		||||
			cp++;
 | 
			
		||||
		}
 | 
			
		||||
		} else
 | 
			
		||||
			cp++;
 | 
			
		||||
	}
 | 
			
		||||
	return (width);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user