Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Michael Grant
2026-10-01 08:13:16 +01:00
parent 7f84dfd3c7
commit 033c6ecb9f
5 changed files with 59 additions and 60 deletions

View File

@@ -321,8 +321,10 @@ layout_dump_visible(struct window *w, int flags)
struct layout_cell *root, *lc, *lcnext;
char *out;
if (zwp == NULL)
return (layout_dump(w, w->layout_root, flags));
if (zwp == NULL) {
out = layout_dump(w, w->layout_root, flags);
return (out);
}
root = layout_create_cell(NULL);
layout_set_size(root, w->sx, w->sy, 0, 0);