Commit Diff
- Commit:
e31c89e9729d162ca5e015962b45923263d1eee1
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Mark Jamsek <mark@jamsek.dev>
- Date:
- Message:
- tog: don't show the base commit marker in limit view The limit commit queue is invariably filled with different commits to the queue containing all commits, so the index of the work tree's base commit in the real queue corresponds to a different commit in the limit queue. As such, the marker is drawn on an incorrect commit. Rather than fix this to draw the marker on the correct commit if it happens to be in the limit queue, don't draw the marker at all in limit view. As pointed out by Mikhail on the list, this information is not wanted in the limit view. Patch and report by Mikhail.
- Actions:
- Patch | Tree
--- tog/tog.c +++ tog/tog.c @@ -2498,7 +2498,7 @@ draw_commit(struct tog_view *view, struct commit_queue while (col < avail && author_width < author_display_cols + 2) { if (tog_base_commit.marker != GOT_WORKTREE_STATE_UNKNOWN && author_width == marker_column && - entry->idx == tog_base_commit.idx) { + entry->idx == tog_base_commit.idx && !s->limit_view) { tc = get_color(&s->colors, TOG_COLOR_COMMIT); if (tc) wattr_on(view->window,