mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit 44bcf061d287fea745bee24d156a4c7dcfeff027 parent b83858250ca9b11b2d16ae6ab5b219f4c069e469 Author: Rob King <jking@deadpixi.com> Date: Sun, 23 Apr 2017 22:48:11 -0500 Don't fail on tab allocation failure. Diffstat:
| M | mtm.c | 9 | +++++---- |
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/mtm.c b/mtm.c @@ -973,12 +973,13 @@ reshapeview(NODE *n, int y, int x, int h, int w) /* Reshape a view. */ int oy, ox; struct winsize ws = {.ws_row = h, .ws_col = w}; bool *tabs = newtabs(w, n->w, n->tabs); - if (!tabs) - return; + + if (tabs){ + free(n->tabs); + n->tabs = tabs; + } getyx(n->win, oy, ox); - free(n->tabs); - n->tabs = tabs; mvwin(n->win, 0, 0); wresize(n->win, h? h : 2, w? w : 2); mvwin(n->win, y, 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.