"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: fix hscrolling in split view
To:
Omar Polo <op@omarpolo.com>
Cc:
gameoftrees@openbsd.org
Date:
Fri, 17 Jun 2022 10:09:16 +0200

Download raw body.

Thread
On Fri, Jun 17, 2022 at 09:56:52AM +0200, Omar Polo wrote:
> @@ -1529,6 +1540,8 @@ draw_commit(struct tog_view *view, struct got_commit_o
>  	if (newline)
>  		*newline = '\0';
>  	limit = avail - col;
> +	if (view->child)
> +		limit--;	/* for the border */

Check if limit > 0 before decrementing? Just for sanity.