diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-10 21:51:57 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-10 21:51:57 +0300 |
| commit | 425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch) | |
| tree | e52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/input/key_mods.zig | |
| parent | 90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff) | |
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/input/key_mods.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/input/key_mods.zig | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/vendor/libghostty-vt/src/input/key_mods.zig b/vendor/libghostty-vt/src/input/key_mods.zig index 35e1c103..1a981403 100644 --- a/vendor/libghostty-vt/src/input/key_mods.zig +++ b/vendor/libghostty-vt/src/input/key_mods.zig @@ -368,12 +368,11 @@ pub const RemapSet = struct { const to = entry.value_ptr.*; var buf: [64]u8 = undefined; - var fbs = std.io.fixedBufferStream(&buf); - const writer = fbs.writer(); - formatMod(writer, from) catch return error.OutOfMemory; + var writer: std.Io.Writer = .fixed(&buf); + formatMod(&writer, from) catch return error.OutOfMemory; writer.writeByte('=') catch return error.OutOfMemory; - formatMod(writer, to) catch return error.OutOfMemory; - try formatter.formatEntry([]const u8, fbs.getWritten()); + formatMod(&writer, to) catch return error.OutOfMemory; + try formatter.formatEntry([]const u8, writer.buffered()); } } |
