summaryrefslogtreecommitdiff
path: root/core/bindings.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/bindings.zig')
-rw-r--r--core/bindings.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/bindings.zig b/core/bindings.zig
index 3884aca0..da8ed4dc 100644
--- a/core/bindings.zig
+++ b/core/bindings.zig
@@ -619,8 +619,7 @@ test "\" shows the registers rolled, the ones holding something, each its value
try std.testing.expect(std.mem.indexOf(u8, band.items, "p after P before R replace y into") != null);
// The empty register's `—` and the names in the dim ink, the verbs'
// letters bold in the key ink.
- const roles = &p.chromeTheme().roles;
- const inks = roles.on(if (pardes.Trail.reading(p, pane)) .reading_focused else .focused);
+ const inks = p.chrome().on(.focus);
const Cells = struct {
fn at(l: *const pardes.Layer, word: []const u8) ?*const pardes.Cell {
for (0..l.rows) |row| {
@@ -637,7 +636,7 @@ test "\" shows the registers rolled, the ones holding something, each its value
};
try std.testing.expectEqual(pardes.Color{ .rgb = inks.dim }, Cells.at(layer, "last search").?.style.fg);
const verbs = Cells.at(layer, "p after").?;
- try std.testing.expectEqual(pardes.Color{ .rgb = roles.key }, verbs.style.fg);
+ try std.testing.expectEqual(pardes.Color{ .rgb = inks.key }, verbs.style.fg);
try std.testing.expect(verbs.style.bold);
for (0..layer.rows) |row| {
const cells = layer.cells[row * layer.cols ..][0..layer.cols];