mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:44:18 +00:00 
			
		
		
		
	Pass Ctrl keys through as is when given as hex, GitHub issue 2724.
This commit is contained in:
		@@ -183,6 +183,8 @@ key_string_lookup_string(const char *string)
 | 
			
		||||
	if (string[0] == '0' && string[1] == 'x') {
 | 
			
		||||
		if (sscanf(string + 2, "%x", &u) != 1)
 | 
			
		||||
			return (KEYC_UNKNOWN);
 | 
			
		||||
		if (u < 32)
 | 
			
		||||
			return (u);
 | 
			
		||||
		mlen = wctomb(m, u);
 | 
			
		||||
		if (mlen <= 0 || mlen > MB_LEN_MAX)
 | 
			
		||||
			return (KEYC_UNKNOWN);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user