aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'format.c')
-rw-r--r--format.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/format.c b/format.c
index bfc40906..bcb897d6 100644
--- a/format.c
+++ b/format.c
@@ -321,6 +321,13 @@ format_expand(struct format_tree *ft, const char *fmt)
break;
fmt += n + 1;
continue;
+ case '#':
+ while (len - off < 2) {
+ buf = xrealloc(buf, 2, len);
+ len *= 2;
+ }
+ buf[off++] = '#';
+ continue;
default:
s = NULL;
if (ch >= 'A' && ch <= 'Z')