diff options
author | nicm <nicm> | 2015-08-29 09:25:00 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-08-29 09:25:00 +0000 |
commit | b56958500036970023c7a53264331cd10a5bbed2 (patch) | |
tree | 4e919788d8f30a08c048d573449a79e03fc06cc1 /format.c | |
parent | b9f0571780e7058a70a8cc3b6805b6f1a73061e0 (diff) |
Move struct paste_buffer out of tmux.h.
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1074,10 +1074,12 @@ void format_defaults_paste_buffer(struct format_tree *ft, struct paste_buffer *pb, int utf8flag) { + size_t bufsize; char *s; - format_add(ft, "buffer_size", "%zu", pb->size); - format_add(ft, "buffer_name", "%s", pb->name); + paste_buffer_data(pb, &bufsize); + format_add(ft, "buffer_size", "%zu", bufsize); + format_add(ft, "buffer_name", "%s", paste_buffer_name(pb)); s = paste_make_sample(pb, utf8flag); format_add(ft, "buffer_sample", "%s", s); |