summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-12-21 12:45:34 +0000
committersabetts <sabetts>2001-12-21 12:45:34 +0000
commit5e6697861c21bfa998bf32a6ccfa84d2358836f4 (patch)
tree48d00b7b2f513428d2a182f053f457c4011f3ce3 /src/list.c
parentd2b0bec72c0faf049cfabd1c4ae09029dbac5cec (diff)
downloadratpoison-5e6697861c21bfa998bf32a6ccfa84d2358836f4.zip
(format_window_name): print unrecognized formatting
options.
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c8
1 files changed, 5 insertions, 3 deletions
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;
}