"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Mikhail <mp39590@gmail.com>
Subject:
tog: base commit marker in limit view
To:
gameoftrees@openbsd.org
Date:
Sat, 12 Aug 2023 10:05:09 +0300

Download raw body.

Thread
In limit view (&) tog shows base commit marker on the first commit every
time.

Inlined patch removes the marker if we are in limit view.

diff /home/misha/work/got
commit - 123cba5ad6fe36893f2019bb0a806db3f3139dde
path + /home/misha/work/got
blob - c4839d1c9023a068753142f189620d39826b0968
file + tog/tog.c
--- 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,