summaryrefslogtreecommitdiff
path: root/src/keys.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/keys.zig')
-rw-r--r--src/keys.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keys.zig b/src/keys.zig
index bdf8a454..947954f1 100644
--- a/src/keys.zig
+++ b/src/keys.zig
@@ -523,6 +523,7 @@ fn leaderKey(p: *Pardes, key: Key) void {
}
test "Esc back into a tty leaves its view at the prompt" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell, opened by a key
const gpa = std.testing.allocator;
const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .file = "mise.toml" });
defer p.deinit();
@@ -678,6 +679,7 @@ test "Del from a key asks which neighbour takes the rows; nothing else asks" {
}
test "raw tty Esc backs out and Shift-Esc is the program's Esc" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell, opened by a key
const p = try Pardes.init(std.testing.allocator, .{ .cols = 80, .rows = 24, .file = "mise.toml" });
defer p.deinit();
_ = exec.spawnTty(p, 0);