mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Plain stravis() because it will mangle UTF-8 characters, so add
utf8_stravis() which calls our existing utf8_strvis() and use it instead
This commit is contained in:
		@@ -105,7 +105,7 @@ cmd_show_options_print(struct cmd *self, struct cmdq_item *item,
 | 
			
		||||
	if (args_has(self->args, 'v'))
 | 
			
		||||
		cmdq_print(item, "%s", value);
 | 
			
		||||
	else if (options_isstring(o)) {
 | 
			
		||||
		stravis(&escaped, value, VIS_OCTAL|VIS_TAB|VIS_NL|VIS_DQ);
 | 
			
		||||
		utf8_stravis(&escaped, value, VIS_OCTAL|VIS_TAB|VIS_NL|VIS_DQ);
 | 
			
		||||
		cmdq_print(item, "%s \"%s\"", name, escaped);
 | 
			
		||||
		free(escaped);
 | 
			
		||||
	} else
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user