From d1273bbd99daf9b1855d82bf315db8ede20abde5 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 3 Nov 2026 16:52:58 -0300 Subject: fs: a pane's ctl read ends with its mode (mode:normal|insert|select|tty, select being normal mode extending), and kbdin takes Plan 9's Kalt, Kshift and Kctl runes (U+F015-F017), each adding its modifier to the key after it, an Alt or Ctrl key typing no text: the two surfaces the behavioural tests' inventory found most wanted (90 tests read body.mode, 18 send Alt or Shift); the tests that pinned the ctl line's end look for its words instead Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/pardes.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pardes.zig') diff --git a/src/pardes.zig b/src/pardes.zig index fb3dc36f..ff64cb9f 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -1711,7 +1711,7 @@ test "a REPL bound for a language takes the exec made on a body in it; tags, Exe try std.testing.expect(ran.pty_len == 0 and ran.spawned); // The pane's ctl line ends with the id it is bound as. var line: [ctlfs.ctl.pane_text_cap]u8 = undefined; - try std.testing.expect(std.mem.endsWith(u8, ctlfs.ctl.paneText(p, p.panes[1].?, &line), " python-a ")); + try std.testing.expect(std.mem.indexOf(u8, ctlfs.ctl.paneText(p, p.panes[1].?, &line), " python-a ") != null); } // What is sent is plain text: CRLF is LF, no ESC or other control. _ = exec.executeFrom(p, 0, "a = 1\r\nb = \x1b[201~2", true); -- cgit v1.3