summaryrefslogtreecommitdiff
path: root/test/mode.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/mode.zig')
-rw-r--r--test/mode.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/mode.zig b/test/mode.zig
index 1f21c7db..a7538dff 100644
--- a/test/mode.zig
+++ b/test/mode.zig
@@ -31,7 +31,11 @@ test "Mode cycles terminal modes and keeps legacy toggle and custom tags" {
while (p.nextEffect()) |_| {}
const pane = p.panes[0].?;
try std.testing.expectEqual(panes.Text.Mode.tty, pane.body.mode);
- try std.testing.expect(std.mem.indexOf(u8, try pardes.tagline.tagText(p, p.scratch.allocator(), pane), " Mode") != null);
+ // Mode is a word of its kind's (`:`'s, UX K'4), not of its tag's: typed
+ // into the tag's own text, it runs from there as B2 runs it.
+ try std.testing.expect(std.mem.indexOf(u8, pardes.tagline.kindTail(pane), " Mode") != null);
+ try std.testing.expect(std.mem.indexOf(u8, try pardes.tagline.tagText(p, p.scratch.allocator(), pane), " Mode") == null);
+ try customTag(pane, "Mode");
try mode(p, 0, .normal);
try mode(p, 0, .insert);
// A clicked tag is in normal mode, where its execute key is, as a