diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 13:31:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:14 -0300 |
| commit | 238e35e89d387f3c266b40f107e9419ea75d77bb (patch) | |
| tree | d531d6aaa608c4e1f025969e4d4a1428efce3e70 /src/builtins.zig | |
| parent | 917e9a099f3a5048ac436aafcfabbf3d40d1c24f (diff) | |
| download | pardes-238e35e89d387f3c266b40f107e9419ea75d77bb.tar.gz pardes-238e35e89d387f3c266b40f107e9419ea75d77bb.zip | |
Joincol with no column to the right and Theme with no such theme say so
Both did nothing without a word, from a click or a ctl write alike, and a
script could not tell a no-op from success. Joincol in the rightmost column
now fails 'Joincol: no column to the right'. A Theme name that is none says so
and names the themes sharing its first letter, since all of them (ThemeSel
lists them) are too many for a message or a refused write; a startup config
line still fails quietly, as its other bad lines do.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/builtins.zig b/src/builtins.zig index 6bfc9b26..d6b89cf2 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -806,6 +806,9 @@ pub const Tty9p = struct { pub const Joincol = struct { pub const scope: Scope = .session; pub fn run(c: Ctx) void { + // The keyboard's column joins the one to its right; the last has none. + const at = layout.findPane(c.p, c.p.active) orelse return; + if (at.col + 1 >= c.p.ncol) return c.p.reportFailure(c.id, "Joincol: no column to the right"); layout.joinCol(c.p); } }; |
