git.y1.nz

mtm

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

commit 5af9560fcdfd962ddec012d682317888dc51b80a
parent 7fcb96ceb40344a9b1980782872f706285cb4119
Author: Rob King <jking@deadpixi.com>
Date:   Wed, 12 Apr 2017 22:26:39 -0500

Make vpa respect margins.

Diffstat:
Mmtm.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mtm.c b/mtm.c @@ -480,7 +480,7 @@ HANDLER(sgr) /* SGR - Select Graphic Rendition */ } HANDLER(vpa) /* VPA - Cursor Vertical Absolute */ - wmove(win, P1(0) - 1, x); + wmove(win, MIN(n->bot - 1, MAX(n->top, P1(0) - 1)), x); ENDHANDLER HANDLER(hpa) /* HPA - Cursor Horizontal Absolute */

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