aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/input/key_mods.zig
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/libghostty-vt/src/input/key_mods.zig')
-rw-r--r--vendor/libghostty-vt/src/input/key_mods.zig9
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());
}
}