From 41dd733ca7123c9ac4bfc6c781697a660e95b052 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sat, 4 Apr 2026 19:22:04 +0300 Subject: feat: finish ghostty pane backend integration --- vendor/libghostty-vt/pkg/oniguruma/testing.zig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 vendor/libghostty-vt/pkg/oniguruma/testing.zig (limited to 'vendor/libghostty-vt/pkg/oniguruma/testing.zig') diff --git a/vendor/libghostty-vt/pkg/oniguruma/testing.zig b/vendor/libghostty-vt/pkg/oniguruma/testing.zig new file mode 100644 index 00000000..234b5e75 --- /dev/null +++ b/vendor/libghostty-vt/pkg/oniguruma/testing.zig @@ -0,0 +1,15 @@ +const init = @import("init.zig"); +const Encoding = @import("types.zig").Encoding; + +var initialized: bool = false; + +/// Call this function before any other tests in this package to ensure that +/// the oni library is initialized. This should only be used for tests +/// and only when you're sure this is the ONLY way that oni is being +/// initialized. +/// +/// This always only initializes the encodings the tests use. +pub fn ensureInit() !void { + if (initialized) return; + try init.init(&.{Encoding.utf8}); +} -- cgit v1.2.3