Commit Diff


commit - c0db90e86273b0c88c3864e91d40324f377737a0
commit + f31d6c3bb64ee3c4dc056588d559b58a9174ba59
blob - 32d532502b365f2075bf7052eb2122effff930d6
blob + 6ae32ea1ad6c310b00c6dae70527e7313d433e6c
--- tog/tog.c
+++ tog/tog.c
@@ -2049,15 +2049,15 @@ draw_commit(struct tog_view *view, struct got_commit_o
 		wattr_on(view->window,
 		    COLOR_PAIR(tc->colorpair), NULL);
 	waddwstr(view->window, wauthor);
-	if (tc)
-		wattr_off(view->window,
-		    COLOR_PAIR(tc->colorpair), NULL);
 	col += author_width;
 	while (col < avail && author_width < author_display_cols + 2) {
 		waddch(view->window, ' ');
 		col++;
 		author_width++;
 	}
+	if (tc)
+		wattr_off(view->window,
+		    COLOR_PAIR(tc->colorpair), NULL);
 	if (col > avail)
 		goto done;