Merge branch 'master' into floating_panes

This commit is contained in:
Nicholas Marriott
2026-06-04 14:10:25 +01:00
5 changed files with 11 additions and 63 deletions

View File

@@ -5633,7 +5633,7 @@ format_expand1(struct format_expand_state *es, const char *fmt)
const char *ptr, *s, *style_end = NULL;
size_t off, len, n, outlen;
int ch, brackets;
char expanded[8192], number[2] = { 0 };
char expanded[8192];
if (fmt == NULL || *fmt == '\0' || !format_check_time(es))
return (xstrdup(""));
@@ -5763,13 +5763,6 @@ format_expand1(struct format_expand_state *es, const char *fmt)
continue;
default:
s = NULL;
if (ch >= '1' && ch <= '9') {
number[0] = ch;
if (format_replace(es, number, 1, &buf, &len,
&off) != 0)
break;
continue;
}
if (fmt > style_end) { /* skip inside #[] */
if (ch >= 'A' && ch <= 'Z')
s = format_upper[ch - 'A'];