diff options
author | nicm <nicm> | 2014-05-13 07:34:35 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-05-13 07:34:35 +0000 |
commit | 3dbacbb62b033c04185fb87da5b0622f0aafee86 (patch) | |
tree | dde33fb1890f249c21d2e5f93943a1e30314f261 /format.c | |
parent | f4ffaf5a7fad4c02ad2d08c7b2c80fdec21b64a9 (diff) | |
download | rtmux-3dbacbb62b033c04185fb87da5b0622f0aafee86.tar.gz rtmux-3dbacbb62b033c04185fb87da5b0622f0aafee86.tar.bz2 rtmux-3dbacbb62b033c04185fb87da5b0622f0aafee86.zip |
Add support for named buffers. If you don't name a buffer, things work
much as before - buffers are automatically named "buffer0000",
"buffer0001" and so on and ordered as a stack. Buffers can be named
explicitly when creating ("loadb -b foo" etc) or renamed ("setb -b
buffer0000 -n foo"). If buffers are named explicitly, they are not
deleted when buffer-limit is reached. Diff from J Raynor.
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -608,6 +608,7 @@ format_paste_buffer(struct format_tree *ft, struct paste_buffer *pb, char *s; format_add(ft, "buffer_size", "%zu", pb->size); + format_add(ft, "buffer_name", "%s", pb->name); s = paste_make_sample(pb, utf8flag); format_add(ft, "buffer_sample", "%s", s); |