Adjust widths of a few codepoints incorrectly set to double width, from

Sidney Cammeresi.
This commit is contained in:
nicm
2026-10-05 08:32:24 +00:00
committed by tmux update bot
parent a21247a508
commit a1fd084d19
2 changed files with 8 additions and 6 deletions

6
utf8.c
View File

@@ -1,4 +1,4 @@
/* $OpenBSD: utf8.c,v 1.73 2026/09/20 08:11:00 nicm Exp $ */
/* $OpenBSD: utf8.c,v 1.74 2026/10/05 08:32:24 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -50,12 +50,8 @@ static struct utf8_width_cache utf8_width_cache =
RB_INITIALIZER(utf8_width_cache);
static struct utf8_width_item utf8_default_width_cache[] = {
{ .wc = 0x0261D, .width = 2 },
{ .wc = 0x026F9, .width = 2 },
{ .wc = 0x0270A, .width = 2 },
{ .wc = 0x0270B, .width = 2 },
{ .wc = 0x0270C, .width = 2 },
{ .wc = 0x0270D, .width = 2 },
{ .wc = 0x1F1E6, .width = 1 },
{ .wc = 0x1F1E7, .width = 1 },
{ .wc = 0x1F1E8, .width = 1 },