dvtm

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

commit f83552a135396a1c42ccd1dd19c2abfcb8f7b70d
parent 93f63df55c69cd571984c6a89569798071fd4be5
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 25 Oct 2014 23:22:54 +0200

Fix off by 1 one in buffer_resize causing wrong scroll up

Diffstat:
vt.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vt.c b/vt.c @@ -1277,7 +1277,7 @@ static void buffer_resize(Buffer *t, int rows, int cols) Row *lines = t->lines; if (t->rows != rows) { - if (t->curs_row > lines + rows) { + if (t->curs_row >= lines + rows) { /* scroll up instead of simply chopping off bottom */ fill_scroll_buf(t, (t->curs_row - t->lines) - rows + 1); }