szn

Bug 248 — pane-border-format defaults to window index (#I) instead of pane index (#P)

248. pane-border-format defaults to window index (#I) instead of pane index (#P)

File: src/options.zig:238, src/server/render.zig:287–318 Severity: LOW (cosmetic) Status: ✅ FIXED

The default value for pane-border-format was "#I" which expands to window_index — always 0 for the first window. This caused every pane border to display 0 followed by the border line (0─────), making it look like a rendering glitch rather than a pane index indicator.

In tmux, pane-border-format defaults to "#{pane_index}" which corresponds to "#P" in szn’s single-character alias format (#I = window index, #P = pane index).

Fix: Change default from "#I" to "#P" so each pane shows its own index on the top border. Also added vertical-border format rendering: when a pane has no top border (y == 0) but has a left border (x > 0, i.e. side-by-side split), the format is drawn vertically down the left border column, one codepoint per row.


NEW BUGS (2026-07-25 post-v0.7.0 code audit)

Found during an audit of bugs fixed between v0.6.0 and v0.7.0, hunting for follow-up regressions, dead code, duplicated logic, and unoptimized algorithms.