From 5e6697861c21bfa998bf32a6ccfa84d2358836f4 Mon Sep 17 00:00:00 2001 From: sabetts Date: Fri, 21 Dec 2001 12:45:34 +0000 Subject: (format_window_name): print unrecognized formatting options. --- ChangeLog | 3 +++ src/list.c | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d9a712b..df5bc4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-12-21 shawn + * src/list.c (format_window_name): print unrecognized formatting + options. + * src/manage.c (unmanage): set the kill_signalled variable. * src/actions.c (wingravity_to_string): new function diff --git a/src/list.c b/src/list.c index d744ef8..d85ebdf 100644 --- a/src/list.c +++ b/src/list.c @@ -689,9 +689,11 @@ format_window_name (char *fmt, rp_window *win, rp_window *other_win, break; case '%': - dbuf[0] = '%'; - dbuf[1] = 0; - sbuf_concat (buffer, dbuf); + sbuf_concat (buffer, "%"); + break; + + default: + sbuf_printf_concat (buffer, "%%%c", *fmt); break; } -- cgit v1.2.3