Commit 8ec9698d5703b0150250849f97b8457a42e22c73

Stefan Sperling 2018-05-10T13:18:32

tweak conditional; no functional change

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 9b2bc12..391c982 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -526,7 +526,7 @@ show_log_view(struct got_object_id *start_id, struct got_repository *repo)
 			case KEY_UP:
 				if (selected > 0)
 					selected--;
-				if (selected != 0)
+				if (selected > 0)
 					break;
 				/* scroll down if there are more children */
 				entry = TAILQ_FIRST(&commits);