summaryrefslogtreecommitdiff
path: root/src/echo.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 20:47:45 -0300
committerGabriel Schneider <[email protected]>2026-11-05 22:07:55 -0300
commit80d47cd246f37356fd2e705495936f6546613e29 (patch)
treec9b8025faa82717c9cc51d98dd4ce774dc0fad13 /src/echo.zig
parent4c3dbce20f11204f6d4bfb715239beae74259e7f (diff)
downloadpardes-80d47cd246f37356fd2e705495936f6546613e29.tar.gz
pardes-80d47cd246f37356fd2e705495936f6546613e29.zip
fields #39, a header's focus is one optional union: header_focus and header_column, of which (false, some column) never happened, are the session's header: ?Header, workspace or column, and p.headerColumn() the column whose tag has the keyboard (null for none or the workspace's); tagline.enterHeader and exitHeader set it in one write each, layout.reorderColumn moves the focused column's index in place, and the reads in 17 files say p.header != null where they said header_focus; views.zig's per-view fields name header; a dump written before this change loads it as the default once: an Upgrade or Restore from it comes back with the keyboard on a pane, not a header, and the wire's semantics change; gates on tui: core-test 960/960, behaviour-test 238/238, pane-test 171/172 (1 skipped), snap all 108 scripts ok; gui unit-test 1518/1519 (1 skipped)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/echo.zig')
-rw-r--r--src/echo.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/echo.zig b/src/echo.zig
index e98aff49..89d02154 100644
--- a/src/echo.zig
+++ b/src/echo.zig
@@ -541,7 +541,7 @@ fn keyboardPane(c: *const Pardes, view: u8) ?usize {
const live = c.view == view;
const part = if (live) null else &(c.parked[view] orelse return null).view;
const id = if (part) |v| v.active else c.active;
- if (if (part) |v| v.window_pick != null or v.header_focus else c.window_pick != null or c.header_focus) return null;
+ if (if (part) |v| v.window_pick != null or v.header != null else c.window_pick != null or c.header != null) return null;
const pane = c.panes[id] orelse return null;
if (!pane.isTerminal() or pane.terminal == null or pane.prompt != .none) return null;
const mode = if (live) pane.body.mode else pane.pv[view].body.mode;