Files
systemd/src/basic
Armaan Sandhu 893d65df6b string-util: don't miss ANSI sequence at the very end in previous_ansi_sequence()
The backwards scan started at offset length-3, so the last position at which a
sequence can begin, length-2, was never examined. CSI sequences are at least
three bytes long and were thus unaffected, but two byte Fe sequences (ESC
followed by 0x40…0x5F) terminating the examined slice were missed.

ellipsize_mem() calls this to figure out whether a sequence ends exactly at the
current position, so that it can be skipped over, which is precisely the case
that was broken: such a sequence was instead counted as two visible cells and
copied through as text, and the string was ellipsized more aggressively than
requested. For example ellipsize("🐱🐱\x1bM🐱🐱\x1bM", 5, 0) returned a three
cell wide string rather than the five cells asked for.

(cherry picked from commit 2bb179632f)
2026-09-09 10:08:19 +01:00
..
…
2026-01-06 10:34:02 +01:00
2026-04-26 21:21:49 +02:00
2026-03-03 22:18:26 +01:00
2026-02-05 16:18:35 +01:00
2026-03-31 18:30:40 +02:00
2026-04-09 22:47:10 +02:00
2026-04-09 22:47:10 +02:00
2025-12-15 08:50:13 +09:00
…
…
…
2026-07-19 22:34:06 +01:00