account for the vborder in draw_commit the vborder is drawn on top of the window and that can cause issues with double-width characters. Instead, account for it when computing the space available for the log message. ok stsp@
diff --git a/tog/tog.c b/tog/tog.c
index 4a079e6..253f99f 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1542,6 +1542,8 @@ draw_commit(struct tog_view *view, struct got_commit_object *commit,
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)