Commit Diff
- Commit:
4d1f6af329d8c0aff4e62ee3fd5cf44c8ea57fa6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- 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@
- Actions:
- Patch | Tree
--- 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)