Commit Diff


commit - ce52c690e2a13ddf5ee67733eebdabc89c3ca8f1
commit + a1eca9bb0ce8893c3734d0a40939edce87c632e9
blob - 7878d7d44d3955a60744c2c4fc758e73f5092ab6
blob + 0020e2926ed36501c21db08b9666b4a95d21fb05
--- tog/tog.c
+++ tog/tog.c
@@ -1239,12 +1239,13 @@ draw_tree_entries(struct got_tree_entry **first_displa
 	if (err)
 		return err;
 	waddwstr(window, wline);
-	if (width < COLS)
-		waddch(window, '\n');
 	if (width < COLS)
 		waddch(window, '\n');
 	if (--limit <= 0)
 		return NULL;
+	waddch(window, '\n');
+	if (--limit <= 0)
+		return NULL;
 
 	te = SIMPLEQ_FIRST(&entries->head);
 	if (*first_displayed_entry == NULL) {