git.y1.nz

mtm

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

commit 1a073af6531fb2c27fb82d705a131f2e5bc8092e
parent 7fe7698b26601c8e90b628cc717921f1d6a00ef4
Author: Rob King <jking@deadpixi.com>
Date:   Mon, 26 Jun 2017 17:21:42 -0500

Style fix.

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

diff --git a/mtm.c b/mtm.c @@ -554,12 +554,12 @@ focus(NODE *n) /* Focus a node. */ #define BELOW(n) n->y + n->h + 2, n->x + n->w / 2 #define LEFT(n) n->y + n->h / 2, n->x - 2 #define RIGHT(n) n->y + n->h / 2, n->x + n->w + 2 -#define IN(n, y, x) (y >= n->y && y <= n->y + n->h && \ - x >= n->x && x <= n->x + n->w) static NODE * findnode(NODE *n, int y, int x) /* Find the node enclosing y,x. */ { + #define IN(n, y, x) (y >= n->y && y <= n->y + n->h && \ + x >= n->x && x <= n->x + n->w) if (IN(n, y, x)){ if (n->c1 && IN(n->c1, y, x)) return findnode(n->c1, 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.