From d24f3b616a7df729ff9604d2e5eed2448548e1c6 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Wed, 14 Oct 2026 12:14:53 -1000 Subject: End a long directory chain on its last link Past fifteen single directories the row stopped after writing the next separator, which left it ending in a dangling " / ". --- source/ui-tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/ui-tree.c b/source/ui-tree.c index 51ab9ff..13a9787 100644 --- a/source/ui-tree.c +++ b/source/ui-tree.c @@ -262,7 +262,8 @@ static void print_dir_chain(const struct object_id *oid, char *name, char *rev, read_tree(the_repository, tree, &paths, only_child_cb, &child); - if (child.count != 1) + // The separator only goes out ahead of a level that will follow. + if (child.count != 1 || levels == MAX_DIR_CHAIN_LEVELS) break; html(" / "); -- cgit 2.12.1