Commit Diff


commit - 40236d7667cfdc2a4107c514b64f7f7bf6490f45
commit + 5c6cacf5ac35a34762aea020d9eba56b1b973c94
blob - 0525191d4d4ecef715236ddc4272f0c434b2f474
blob + 8098a12c3f835b8d1991338eeaa8d75771ced72e
--- tog/tog.c
+++ tog/tog.c
@@ -1549,6 +1549,8 @@ draw_commit(struct tog_view *view, struct got_commit_o
 	if (newline)
 		*newline = '\0';
 	limit = avail - col;
+	if (view->child && limit > 0)
+		limit--;	/* for the border */
 	err = format_line(&wlogmsg, &logmsg_width, &scrollx, logmsg, view->x,
 	    limit, col, 1);
 	if (err)