Commit Diff


commit - 0dbbbe90fd9a3e5eec46f03459367552d13fec3c
commit + 4d1f6af329d8c0aff4e62ee3fd5cf44c8ea57fa6
blob - 4a079e6345d31a3cebffc06b28e24bb8feed1604
blob + 253f99fd7e3be77b7efa0b7a1954024e2d286472
--- tog/tog.c
+++ tog/tog.c
@@ -1542,6 +1542,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)