aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-07-04 13:02:25 +0100
committerThomas Adam <thomas@xteddy.org>2018-07-04 13:02:25 +0100
commit850c26dd46a0b6983e32112fc1e37b8aa5a5268b (patch)
treece9250e828bfc4ab96e3faae08ea9695006a5721 /format.c
parentdb07f338863eea6a8eda2b0efafb7e2b2500e14e (diff)
parent2fae6a57618e1cef47b65e73504d7d5570ca6a8e (diff)
downloadrtmux-850c26dd46a0b6983e32112fc1e37b8aa5a5268b.tar.gz
rtmux-850c26dd46a0b6983e32112fc1e37b8aa5a5268b.tar.bz2
rtmux-850c26dd46a0b6983e32112fc1e37b8aa5a5268b.zip
Merge branch 'obsd-master'
Diffstat (limited to 'format.c')
-rw-r--r--format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/format.c b/format.c
index 25644d10..07c18408 100644
--- a/format.c
+++ b/format.c
@@ -563,11 +563,11 @@ format_cb_history_bytes(struct format_tree *ft, struct format_entry *fe)
size = 0;
for (i = 0; i < gd->hsize; i++) {
- gl = &gd->linedata[i];
+ gl = grid_get_line(gd, i);
size += gl->cellsize * sizeof *gl->celldata;
size += gl->extdsize * sizeof *gl->extddata;
}
- size += gd->hsize * sizeof *gd->linedata;
+ size += gd->hsize * sizeof *gl;
xasprintf(&fe->value, "%llu", size);
}