git.y1.nz

mtm

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

commit f4f4e99f0a0eddc5cb3238d1613dc7155e61841f
parent 70e8ff5d8f54f109aae5698cd36d52554ae61171
Author: Rob King <jking@deadpixi.com>
Date:   Wed,  8 Mar 2017 01:40:18 -0600

Erase windows on split, to avoid artifacts.

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

diff --git a/mtm.c b/mtm.c @@ -321,7 +321,6 @@ static void drawview(NODE *n, bool force) { if (!n->vt) return; - const TMTSCREEN *s = tmt_screen(n->vt); for (size_t r = 0; r < s->nline; r++) if (s->lines[r]->dirty || force){ for (size_t c = 0; c < s->ncol; c++) @@ -361,6 +360,7 @@ split(NODE *n, node_t t) NODE *v = newview(NULL, 0, 0, MAX(0, nh), MAX(0, nw)); if (!v) return; + wclear(n->win); wrefresh(n->win); NODE *c = newcontainer(t, n->p, n->y, n->x, n->h, n->w, n, v); if (!c){ freenode(v, false); @@ -423,7 +423,7 @@ handlechar(int k) DO(true, HSPLIT, split(focused, HORIZONTAL)) DO(true, VSPLIT, split(focused, VERTICAL)) DO(true, DELETE_NODE, deletenode(focused)) - DO(true, REDRAW, erase(); draw(root, true)) + DO(true, REDRAW, draw(root, true)) char c[] = {(char)k, 0}; WRITESTR(c); return cmd = false, true;

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