git.y1.nz

mtm

Ncurses-based terminal multiplexer
download: https://git.y1.nz/archives/mtm.tar.gz
Files | Log | Refs

commit d3e09959c1f3aae70913642df09d97c142017552
parent f17540ab5296b699f62edebe6b04d4fce3ffdb5c
Author: Rob King <jking@deadpixi.com>
Date:   Wed, 26 Jul 2017 22:25:22 -0500

Fix counterintuitive splitting names.

Diffstat:
Mmtm.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mtm.c b/mtm.c @@ -737,8 +737,8 @@ draw(NODE *n) /* Draw a node. */ static void split(NODE *n, Node t) /* Split a node. */ { - int nh = t == VERTICAL? (n->h - 1) / 2 : n->h; - int nw = t == HORIZONTAL? (n->w) / 2 : n->w; + int nh = t == HORIZONTAL? (n->h - 1) / 2 : n->h; + int nw = t == VERTICAL? (n->w) / 2 : n->w; NODE *p = n->p; NODE *v = newview(NULL, 0, 0, MAX(0, nh), MAX(0, nw)); if (!v)

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.