From 425c86179791cd32e2d4ce0ae7f269940b4b0663 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Thu, 10 Sep 2026 21:51:57 +0300 Subject: chore: upgrade libghostty and preserve terminal behavior (#3906) --- vendor/libghostty-vt/src/cli/show_config.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vendor/libghostty-vt/src/cli/show_config.zig') diff --git a/vendor/libghostty-vt/src/cli/show_config.zig b/vendor/libghostty-vt/src/cli/show_config.zig index cd0ba89a..60df2a77 100644 --- a/vendor/libghostty-vt/src/cli/show_config.zig +++ b/vendor/libghostty-vt/src/cli/show_config.zig @@ -5,6 +5,7 @@ const Action = @import("ghostty.zig").Action; const configpkg = @import("../config.zig"); const Config = configpkg.Config; const Pager = @import("Pager.zig"); +const global = @import("../global.zig"); pub const Options = struct { /// If true, do not load the user configuration, only load the defaults. @@ -66,7 +67,7 @@ pub fn run(alloc: Allocator) !u8 { defer opts.deinit(); { - var iter = try args.argsIterator(alloc); + var iter = try args.argsIterator(alloc, global.args()); defer iter.deinit(); try args.parse(Options, alloc, &opts, &iter); } @@ -81,7 +82,7 @@ pub fn run(alloc: Allocator) !u8 { .docs = opts.docs, }; - var pager: Pager = if (!opts.@"no-pager") .init(alloc) else .{}; + var pager: Pager = if (!opts.@"no-pager") .init() else .{}; defer pager.deinit(); var buffer: [4096]u8 = undefined; const writer = pager.writer(&buffer); -- cgit v1.2.3