Commit 63ba1a3a6f40953d1636e718c0e0000a3d626159

Omar Polo 2022-06-21T16:52:34

fix `limit' accounting in draw_commit if the child view is fullscreen we don't need to subtract one, because no vborder is drawn. ok Mark Jamsek

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 17b45ee..cb01bcd 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1547,7 +1547,7 @@ draw_commit(struct tog_view *view, struct got_commit_object *commit,
 	if (newline)
 		*newline = '\0';
 	limit = avail - col;
-	if (view->child && limit > 0)
+	if (view->child && view_is_splitscreen(view->child) && limit > 0)
 		limit--;	/* for the border */
 	err = format_line(&wlogmsg, &logmsg_width, &scrollx, logmsg, view->x,
 	    limit, col, 1);