diff options
Diffstat (limited to 'dev/tui')
| -rw-r--r-- | dev/tui/tui.zig | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig index 92ac6a0c..2f731e68 100644 --- a/dev/tui/tui.zig +++ b/dev/tui/tui.zig @@ -699,7 +699,7 @@ const Tty = struct { pub fn drop(t: *Tty) void { while (t.loop.tryEvent() catch null) |ev| switch (ev) { .said => |msg| switch (msg) { - .unit, .screen, .refused, .blob => |b| std.heap.c_allocator.free(b), + .unit, .refused, .blob => |b| std.heap.c_allocator.free(b), .checked, .ended, .left => {}, }, .paste => |b| t.sh.gpa.free(@constCast(b)), @@ -1585,12 +1585,11 @@ const Shell = struct { s.input_seen = true; }, .said => |said| if (s.client) |c| { - // The session's units and deltas are a client's output - // (waitInput paces it): a terminal's delta, or the unit - // that answers its own input, is its echo, drawn at once. + // The session's units are a client's output (waitInput + // paces it): the unit that answers its own input is its + // echo, drawn at once. s.output_seen = true; const echo = switch (said) { - .screen => true, .unit => |b| if (replica.parseUnit(b)) |u| u.origin == c.link.r.id else false, else => false, }; @@ -1598,7 +1597,7 @@ const Shell = struct { c.take(said); if (said == .refused or said == .ended or said == .left) return true; } else switch (said) { - .unit, .screen, .refused, .blob => |b| std.heap.c_allocator.free(b), + .unit, .refused, .blob => |b| std.heap.c_allocator.free(b), .checked, .ended, .left => {}, }, .link_gone => if (s.client) |c| { |
