@badliveware/pi-footer-framework 0.2.1 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.2
4
+
5
+ - Fixed custom footer rendering so layouts with all visible items on line 1 render as a single footer line instead of reserving an empty second line.
6
+
3
7
  ## 0.2.1
4
8
 
5
9
  - Fixed footer rendering with cell-buffer composition so ANSI styling, OSC8 hyperlinks, grapheme clusters, wide characters, and overlays preserve terminal cell alignment.
package/index.ts CHANGED
@@ -2171,7 +2171,7 @@ export default function footerFramework(pi: ExtensionAPI): void {
2171
2171
  const diagnostics: FooterTemplateDiagnostic[] = [];
2172
2172
  const items = collectItems(theme, footerData, stats, diagnostics);
2173
2173
  lastTemplateDiagnostics = diagnostics;
2174
- const maxLine = Math.max(2, ...items.map((item) => item.placement.line));
2174
+ const maxLine = Math.max(1, ...items.map((item) => item.placement.line));
2175
2175
  const lineResults = Array.from({ length: maxLine }, (_, index) => {
2176
2176
  const line = index + 1;
2177
2177
  const result = renderFooterLine(theme, width, items, line, getLineAnchor(settings, line));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@badliveware/pi-footer-framework",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Configurable footer framework extension for Pi.",
5
5
  "type": "module",
6
6
  "types": "./index.ts",