aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/apprt/gtk/ext
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-10 21:51:57 +0300
committerGitHub <noreply@github.com>2026-09-10 21:51:57 +0300
commit425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch)
treee52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/apprt/gtk/ext
parent90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff)
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/apprt/gtk/ext')
-rw-r--r--vendor/libghostty-vt/src/apprt/gtk/ext/actions.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/libghostty-vt/src/apprt/gtk/ext/actions.zig b/vendor/libghostty-vt/src/apprt/gtk/ext/actions.zig
index 3232bc18..6ba9c678 100644
--- a/vendor/libghostty-vt/src/apprt/gtk/ext/actions.zig
+++ b/vendor/libghostty-vt/src/apprt/gtk/ext/actions.zig
@@ -176,7 +176,11 @@ test "adding actions to an object" {
_ = addAsGroup(gtk.Box, box, "test", &actions);
}
- const expected = std.crypto.random.intRangeAtMost(i32, 1, std.math.maxInt(u31));
+ const expected = expected: {
+ const rng_impl: std.Random.IoSource = .{ .io = testing.io };
+ const rng = rng_impl.interface();
+ break :expected rng.intRangeAtMost(i32, 1, std.math.maxInt(u31));
+ };
const parameter = glib.Variant.newInt32(expected);
try testing.expect(box.as(gtk.Widget).activateActionVariant("test.test", parameter) != 0);