diff options
Diffstat (limited to 'src/ninep/ctl.zig')
| -rw-r--r-- | src/ninep/ctl.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index 9c5b82bf..504a4e2d 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -389,7 +389,7 @@ pub fn statusText(p: *Pardes) []const u8 { // Whether the pointer is over this window: what a grip let go past // another window's edge asks of every window, to find the one it was // let go over (Handover.zig), where no window may know another's place. - if (p.windowed) w.writer.print("pointer {s}\n", .{if (p.pointer_inside) "in" else "out"}) catch {}; + if (p.frontend.windowed) w.writer.print("pointer {s}\n", .{if (p.pointer_inside) "in" else "out"}) catch {}; return w.written(); } @@ -1391,11 +1391,11 @@ test "status in a window says whether the pointer is over it" { // there is a terminal's view. const p = try withFile(testing.allocator, "x\n"); defer p.deinit(); - p.windowed = true; + p.frontend.windowed = true; var lines = std.mem.tokenizeScalar(u8, rd(p, root_status, 0, 4096).bytes, '\n'); for (0..3) |_| _ = lines.next(); try testing.expectEqualStrings("pointer out", lines.next().?); - p.windowed = false; + p.frontend.windowed = false; } @@ -1574,9 +1574,9 @@ test "a builtin for one kind of pane is refused on another, and still acts on it // Petscii chose; with them, what it chose. for ([_]bool{ false, true }) |art| { doc.image.?.glyph_art = art; - p.native_images = false; + p.frontend.native_images = false; try testing.expect(std.mem.indexOf(u8, try pardes.tagline.tagPrefix(p, doc), " petscii:on ") != null); - p.native_images = true; + p.frontend.native_images = true; try testing.expect(std.mem.indexOf(u8, try pardes.tagline.tagPrefix(p, doc), if (art) " petscii:on " else " petscii:off ") != null); } } |
