From 7b7b4fabf25fa07e2ae64da3750e43c706f03559 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 3 Sep 2019 12:55:34 -0400 Subject: [PATCH] Fixes issue w/ current ordering when nested --- src/views/nodes/branchNode.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/nodes/branchNode.ts b/src/views/nodes/branchNode.ts index 07e0f94..a464b4c 100644 --- a/src/views/nodes/branchNode.ts +++ b/src/views/nodes/branchNode.ts @@ -58,7 +58,9 @@ export class BranchNode extends ViewRefNode implements Pageabl } get treeHierarchy(): string[] { - return this.branch.detached || this.branch.starred ? [this.branch.name] : this.branch.getName().split('/'); + return this.branch.current || this.branch.detached || this.branch.starred + ? [this.branch.name] + : this.branch.getName().split('/'); } async getChildren(): Promise {