git.y1.nz

mtm

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

commit 3dfd21fe7f167496264b612f5da5720215370840
parent ca578d6e7a83978fa40f99436b6f8d9960ccb02e
Author: Rob King <jking@deadpixi.com>
Date:   Sun, 28 Jul 2019 22:13:01 -0500

Remove redundant function.

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

diff --git a/mtm.c b/mtm.c @@ -725,18 +725,6 @@ freenode(NODE *n, bool recurse) /* Free a node. */ } static void -refreshchildren(NODE *n) -{ - if (n->t == VIEW) - pnoutrefresh(n->s->win, n->s->off, 0, n->y, n->x, - n->y + n->h - 1, n->x + n->w - 1); - if (n->c1) - refreshchildren(n->c1); - if (n->c2) - refreshchildren(n->c2); -} - -static void fixcursor(void) /* Move the terminal cursor to the active view. */ { if (focused){ @@ -1122,10 +1110,10 @@ run(void) /* Run MTM. */ r = wget_wch(focused->s->win, &w); getinput(root, &sfds); - refreshchildren(root); + draw(root); doupdate(); fixcursor(); - refreshchildren(focused); + draw(focused); doupdate(); } }

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