summaryrefslogtreecommitdiff
path: root/src/draw.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw.zig')
-rw-r--r--src/draw.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/draw.zig b/src/draw.zig
index 8503197c..4f238942 100644
--- a/src/draw.zig
+++ b/src/draw.zig
@@ -1057,7 +1057,7 @@ fn tagTintRange(pane: *const Pane, tag: []const u8, prefix_len: usize) ?struct {
// `tag` is the first row; a prefix longer than it ran to a second.
var words = std.mem.tokenizeAny(u8, tag[@min(prefix_len, tag.len)..], " \t\r\n");
while (words.next()) |word| {
- if (!std.mem.eql(u8, word, "Tty") and !std.mem.startsWith(u8, word, "Tty+")) continue;
+ if (!std.mem.eql(u8, word, "Term") and !std.mem.startsWith(u8, word, "Term+")) continue;
const lo = @intFromPtr(word.ptr) - @intFromPtr(tag.ptr);
return .{ .lo = lo, .hi = lo + word.len };
}
@@ -1513,12 +1513,12 @@ test "a grip's four states, focused or not and clean or dirty, are each its own
pane.file.?.revision = pane.file.?.saved_revision;
}
-test "every theme draws a file's name, a +Errors and a Tty word in a tint, never the tag's plain ink" {
+test "every theme draws a file's name, a +Errors and a Term word in a tint, never the tag's plain ink" {
const gpa = std.testing.allocator;
const p = try Pardes.init(gpa, .{ .cols = 120, .rows = 40, .tty_only = true });
defer p.deinit();
_ = try p.setTestFile("text\n");
- try std.testing.expect(p.executeBuiltinLine(0, "Tty+sh"));
+ try std.testing.expect(p.executeBuiltinLine(0, "Term+sh"));
const terminal = p.active;
p.acknowledgeShell(terminal, "/bin/sh", false);
try @import("Output.zig").openErrors(p, 0, try gpa.dupe(u8, "oops\n"));
@@ -1529,7 +1529,7 @@ test "every theme draws a file's name, a +Errors and a Tty word in a tint, never
if (pane.file) |f| if (std.mem.endsWith(u8, f.path, "+Errors")) break id;
} else return error.NoErrorsPane;
const Probe = struct { id: usize, word: []const u8 };
- const probes = [_]Probe{ .{ .id = 0, .word = "test.txt" }, .{ .id = terminal, .word = "Tty+sh" }, .{ .id = errors, .word = "+Errors" } };
+ const probes = [_]Probe{ .{ .id = 0, .word = "test.txt" }, .{ .id = terminal, .word = "Term+sh" }, .{ .id = errors, .word = "+Errors" } };
var arena: std.heap.ArenaAllocator = .init(gpa);
defer arena.deinit();
for (pardes.themes, 0..) |theme, index| {