mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
Do not crash trying to fix layout size if only one cell, from Azat Khuzhin.
This commit is contained in:
parent
9fd62efcf0
commit
2cb268d51b
@ -210,7 +210,7 @@ layout_parse(struct window *w, const char *layout)
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (lc->sx != sx || lc->sy != sy) {
|
||||
if (lc->type != LAYOUT_WINDOWPANE && (lc->sx != sx || lc->sy != sy)) {
|
||||
log_debug("fix layout %u,%u to %u,%u", lc->sx, lc->sy, sx,sy);
|
||||
layout_print_cell(lc, __func__, 0);
|
||||
lc->sx = sx - 1; lc->sy = sy - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user