Commit cf8f1261b874e04a3aeb35afc2792dda12dab5b3

Stefan Sperling 2018-06-24T00:27:02

fix page-up scroll to '..' entries in 'tog tree'

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 0020e29..64c0291 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1499,6 +1499,8 @@ show_tree_view(struct got_tree_object *root, struct got_object_id *commit_id,
 			case KEY_PPAGE:
 				if (SIMPLEQ_FIRST(&entries->head) ==
 				    first_displayed_entry) {
+					if (tree != root)
+						first_displayed_entry = NULL;
 					selected = 0;
 					break;
 				}