diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-23 11:00:44 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-23 17:10:58 -0300 |
| commit | 80314064f6e81c8828340e010202b446f0e1f36d (patch) | |
| tree | aa56e86238ac9397055f601db924868bb6511538 /src/tagline.zig | |
| parent | a53a1aafb9804e943bdcd720c2bb688ecb90a888 (diff) | |
| download | pardes-80314064f6e81c8828340e010202b446f0e1f36d.tar.gz pardes-80314064f6e81c8828340e010202b446f0e1f36d.zip | |
Audit (misc): std mkdir -p and JSON escaping, a 9P late failure's errno from ctl.failureErrno, dead switches and dumpHex out
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/tagline.zig')
| -rw-r--r-- | src/tagline.zig | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/tagline.zig b/src/tagline.zig index b6601d61..e668419d 100644 --- a/src/tagline.zig +++ b/src/tagline.zig @@ -192,12 +192,7 @@ pub fn defaultTail(pane: *const Pane) []const u8 { /// The tag as it is shown, read and pointed at: its computed prefix and /// its own text after it. pub fn tagText(p: *Pardes, arena: std.mem.Allocator, pane: *Pane) ![]u8 { - const prefix = try tagPrefix(p, pane); - const tail = curTail(pane); - const out = try arena.alloc(u8, prefix.len + tail.len); - @memcpy(out[0..prefix.len], prefix); - @memcpy(out[prefix.len..], tail); - return out; + return std.mem.concat(arena, u8, &.{ try tagPrefix(p, pane), curTail(pane) }); } /// Give the keyboard to the tag in normal mode (`:`), its cursor where |
