=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/format.c,v retrieving revision 1.306 retrieving revision 1.307 diff -u -r1.306 -r1.307 --- src/usr.bin/tmux/format.c 2022/06/27 09:14:49 1.306 +++ src/usr.bin/tmux/format.c 2022/06/27 09:16:54 1.307 @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.306 2022/06/27 09:14:49 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.307 2022/06/27 09:16:54 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott @@ -4714,6 +4714,7 @@ n++; } if (*ptr == '[') { + style_end = format_skip(fmt - 2, "]"); format_log(es, "found #*%zu[", n); while (len - off < n + 2) { buf = xreallocarray(buf, 2, len); @@ -4722,7 +4723,6 @@ memcpy(buf + off, fmt - 2, n + 1); off += n + 1; fmt = ptr + 1; - style_end = format_skip(fmt - 2, "]"); continue; } /* FALLTHROUGH */