dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 4a3e83a94ce53f71814efd69eea0977ddae9fc61
parent 40ee9f96a5425b65380465aab0cddc8db266325c
Author: Mark Edgar <medgar123@gmail.com>
Date:   Sat, 14 Jun 2014 20:38:25 +0200

The Vt must redraw when show_border() changes.

Diffstat:
vt.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/vt.c b/vt.c @@ -163,6 +163,8 @@ struct Vt { char rbuf[BUFSIZ]; char ebuf[BUFSIZ]; unsigned int rlen, elen; + /* last known start row, start column */ + int srow, scol; /* xterm style window title */ char title[256]; @@ -1457,6 +1459,12 @@ void vt_draw(Vt *t, WINDOW * win, int srow, int scol) Row *sel_row_start, *sel_row_end; int sel_col_start, sel_col_end; + if (srow != t->srow || scol != t->scol) { + vt_dirty(t); + t->srow = srow; + t->scol = scol; + } + copymode_get_selection_boundry(t, &sel_row_start, &sel_col_start, &sel_row_end, &sel_col_end, true); for (int i = 0; i < b->rows; i++) {