codewalk 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21407,7 +21407,7 @@ class TreeView {
|
|
|
21407
21407
|
this.footerBox.remove(child.id);
|
|
21408
21408
|
}
|
|
21409
21409
|
const totalItems = this.selectableItems.length;
|
|
21410
|
-
const currentPos = this.state.selectedIndex + 1;
|
|
21410
|
+
const currentPos = totalItems > 0 ? this.state.selectedIndex + 1 : 0;
|
|
21411
21411
|
const footerText = new TextRenderable(this.renderer, {
|
|
21412
21412
|
content: `\u2191/\u2193 or scroll: navigate \u2502 Enter/click: expand \u2502 q: quit [${currentPos}/${totalItems}]`,
|
|
21413
21413
|
fg: "#888888"
|