summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig2
1 files changed, 1 insertions, 1 deletions
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);