summaryrefslogtreecommitdiff
path: root/dev/tui
diff options
context:
space:
mode:
Diffstat (limited to 'dev/tui')
-rw-r--r--dev/tui/tui.zig12
1 files changed, 2 insertions, 10 deletions
diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig
index 44f931b6..542ef59a 100644
--- a/dev/tui/tui.zig
+++ b/dev/tui/tui.zig
@@ -1487,14 +1487,6 @@ const Shell = struct {
// a time while they move: on a virtual clock a millisecond's wait
// moves it a frame (waitOnce), on the real one the pace below sets it.
if (s.moving()) wait = 1;
- // Detached, nobody's key dismisses a message: they go on the clock
- // (the pump's, after this wait), which wakes it.
- if (s.detached()) {
- for (s.core.panes) |slot| if (slot) |pane| if (pane.msg_len > 0) {
- wait = if (wait == 0) 100 else @min(wait, 100);
- break;
- };
- }
const paced = s.test_clock == null and s.moving();
var tick: u64 = 0;
if (paced) {
@@ -2577,9 +2569,9 @@ test "a bracketed paste past the paste limit is cut and said, and a reply droppe
const paste = [_]Msg{ .paste_start, .{ .key_press = .{ .codepoint = 'x', .text = big } }, .{ .key_press = .{ .codepoint = 'y', .text = "y" } }, .paste_end };
for (paste) |ev| _ = shell.apply(ev);
try std.testing.expectEqual(max_paste_bytes, pane.file.?.content.len);
- try std.testing.expect(std.mem.indexOf(u8, pane.msg[0..pane.msg_len], "paste cut") != null);
+ try std.testing.expect(std.mem.indexOf(u8, core.messages.saidBy(pane), "paste cut") != null);
_ = shell.apply(.reply_dropped);
- try std.testing.expectEqualStrings(reply_dropped_words, pane.msg[0..pane.msg_len]);
+ try std.testing.expectEqualStrings(reply_dropped_words, core.messages.saidBy(pane));
}
test "terminal input split at every byte with a gap reads as it does whole" {