mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Always format real layout even when zoomed.
This commit is contained in:
parent
93b2871cab
commit
69f292a90e
4 changed files with 8 additions and 4 deletions
|
|
@ -55,12 +55,12 @@ layout_checksum(const char *layout)
|
|||
|
||||
/* Dump layout as a string. */
|
||||
char *
|
||||
layout_dump(struct window *w)
|
||||
layout_dump(struct layout_cell *root)
|
||||
{
|
||||
char layout[BUFSIZ], *out;
|
||||
|
||||
*layout = '\0';
|
||||
if (layout_append(w->layout_root, layout, sizeof layout) != 0)
|
||||
if (layout_append(root, layout, sizeof layout) != 0)
|
||||
return (NULL);
|
||||
|
||||
xasprintf(&out, "%04x,%s", layout_checksum(layout), layout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue