From 022d0210c5afa4e516183bf19715316ccca5d240 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 13 May 2021 08:49:58 +0100 Subject: 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. --- utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utf8.c') diff --git a/utf8.c b/utf8.c index f43945e6..56f20cbb 100644 --- a/utf8.c +++ b/utf8.c @@ -64,7 +64,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) -- cgit