mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	More accurate vi(1) word navigation in copy mode and on the status line.
This changes the meaning of the word-separators option - setting it to the empty string is equivalent to the previous behavior. From Will Noble in GitHub issue 2693.
This commit is contained in:
		
							
								
								
									
										2
									
								
								utf8.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								utf8.c
									
									
									
									
									
								
							@@ -65,7 +65,7 @@ static struct utf8_index_tree utf8_index_tree = RB_INITIALIZER(utf8_index_tree);
 | 
			
		||||
static u_int utf8_next_index;
 | 
			
		||||
 | 
			
		||||
#define UTF8_GET_SIZE(uc) (((uc) >> 24) & 0x1f)
 | 
			
		||||
#define UTF8_GET_WIDTH(flags) (((uc) >> 29) - 1)
 | 
			
		||||
#define UTF8_GET_WIDTH(uc) (((uc) >> 29) - 1)
 | 
			
		||||
 | 
			
		||||
#define UTF8_SET_SIZE(size) (((utf8_char)(size)) << 24)
 | 
			
		||||
#define UTF8_SET_WIDTH(width) ((((utf8_char)(width)) + 1) << 29)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user