mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit 88e5aa872cf7e740203b0f7164c6ff365bfc2450 parent b4f2ed8c4657f926807767b91eb36e675a17fc10 Author: Rob King <jking@deadpixi.com> Date: Fri, 23 Jun 2017 17:07:30 -0500 Revert "Fail earlier on allocation failure." This reverts commit b4f2ed8c4657f926807767b91eb36e675a17fc10. Diffstat:
| M | mtm.c | 9 | ++++----- |
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/mtm.c b/mtm.c @@ -982,11 +982,10 @@ reshapeview(NODE *n, int y, int x, int h, int w) /* Reshape a view. */ struct winsize ws = {.ws_row = h, .ws_col = w}; bool *tabs = newtabs(w, n->w, n->tabs); - if (!tabs) - return; - - free(n->tabs); - n->tabs = tabs; + if (tabs){ + free(n->tabs); + n->tabs = tabs; + } n->y = y; n->x = x;
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.