commit 9e0b562498af93589bef778858099a8a1a33e252 from: Mark Jamsek date: Sun Jul 23 13:55:35 2023 UTC tog: change base commit marker to the commit colour The marker annotates the commit, so it makes more sense to visually tie it to the log message than the author. Patch by stsp, I just removed a block. ok stsp@ commit - 6ed9ffec8b7318ac6f69a138854afefc48bca2c0 commit + 9e0b562498af93589bef778858099a8a1a33e252 blob - 7850a8a50fe8ff23c3f0d68ab713639f97d85090 blob + 897b0c14098c0b8440dbdfbedd2bb8c0792e6efb --- tog/tog.c +++ tog/tog.c @@ -2484,9 +2484,16 @@ draw_commit(struct tog_view *view, struct commit_queue while (col < avail && author_width < author_display_cols + 2) { if (tog_base_commit.id != NULL && author_width == marker_column && - entry->idx == tog_base_commit.idx) + entry->idx == tog_base_commit.idx) { + tc = get_color(&s->colors, TOG_COLOR_COMMIT); + if (tc) + wattr_on(view->window, + COLOR_PAIR(tc->colorpair), NULL); waddch(view->window, tog_base_commit.marker); - else + if (tc) + wattr_off(view->window, + COLOR_PAIR(tc->colorpair), NULL); + } else waddch(view->window, ' '); col++; author_width++;