mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-16 23:06:20 +00:00
os: replace PATH_SEP with std.fs.path.delimiter
This standard library symbol is equivalent.
This commit is contained in:
@@ -780,7 +780,7 @@ const Subprocess = struct {
|
||||
// then we just set it to the directory of the binary.
|
||||
if (env.get("PATH")) |path| {
|
||||
// Verify that our path doesn't already contain this entry
|
||||
var it = std.mem.tokenizeScalar(u8, path, internal_os.PATH_SEP[0]);
|
||||
var it = std.mem.tokenizeScalar(u8, path, std.fs.path.delimiter);
|
||||
while (it.next()) |entry| {
|
||||
if (std.mem.eql(u8, entry, exe_dir)) break :ghostty_path;
|
||||
}
|
||||
|
Reference in New Issue
Block a user