From: Junio C Hamano Date: Tue, 17 Nov 2026 23:25:09 GMT Subject: Re: [PATCH v2] utf8: add display_mode_esc_sequence_len_counted() Message-ID: In-Reply-To: Andy Koppe writes: > Junio C Hamano wrote: > >> - while (isdigit(*p) || *p == ';') >> + while (p < end && (isdigit(*p) || *p == ';')) > > While you're there, could you add colons (':') to that? Do we generate such a sequence that uses subseparators? IIRC, this code is not counting the display width of end-user supplied string. Rather, it gets string we paint in a buffer and then counts how much display column it occupies.