From 28f94d87eda4d62c5b03ddb4d4caf3547e827bc2 Mon Sep 17 00:00:00 2001 From: utox39 Date: Thu, 17 Jul 2025 15:37:31 +0200 Subject: [PATCH] fix(terminal): fix typo --- src/linux/user.zig | 4 ++-- src/macos/user.zig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/linux/user.zig b/src/linux/user.zig index 906ffcb..d6bb3eb 100644 --- a/src/linux/user.zig +++ b/src/linux/user.zig @@ -24,8 +24,8 @@ pub fn getShell(allocator: std.mem.Allocator) ![]u8 { } pub fn getTerminalName(allocator: std.mem.Allocator) ![]u8 { - const term_progrm = std.process.getEnvVarOwned(allocator, "TERM_PROGRAM") catch |err| if (err == error.EnvironmentVariableNotFound) { + const term_program = std.process.getEnvVarOwned(allocator, "TERM_PROGRAM") catch |err| if (err == error.EnvironmentVariableNotFound) { return allocator.dupe(u8, "Unknown"); } else return err; - return term_progrm; + return term_program; } diff --git a/src/macos/user.zig b/src/macos/user.zig index 34abd0f..52da9fb 100644 --- a/src/macos/user.zig +++ b/src/macos/user.zig @@ -27,8 +27,8 @@ pub fn getShell(allocator: std.mem.Allocator) ![]u8 { } pub fn getTerminalName(allocator: std.mem.Allocator) ![]u8 { - const term_progrm = std.process.getEnvVarOwned(allocator, "TERM_PROGRAM") catch |err| if (err == error.EnvironmentVariableNotFound) { + const term_program = std.process.getEnvVarOwned(allocator, "TERM_PROGRAM") catch |err| if (err == error.EnvironmentVariableNotFound) { return allocator.dupe(u8, "Unknown"); } else return err; - return term_progrm; + return term_program; }