Skip to content

Commit

Permalink
update to 0.14.0-dev.36+82a934bb9
Browse files Browse the repository at this point in the history
Where, CI?
  • Loading branch information
Techatrix committed Jun 16, 2024
1 parent cdcc613 commit 47076c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions known-folders.zig
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ fn getPathXdg(allocator: std.mem.Allocator, arena: *std.heap.ArenaAllocator, fol
_ = user_dirs.readAll(&read) catch null orelse break :env_opt null;
const start = folder_spec.env.name.len + "=\"$HOME".len;

var line_it = std.mem.split(u8, &read, "\n");
var line_it = std.mem.splitScalar(u8, &read, '\n');
while (line_it.next()) |line| {
if (std.mem.startsWith(u8, line, folder_spec.env.name)) {
const end = line.len - 1;
Expand All @@ -193,7 +193,7 @@ fn getPathXdg(allocator: std.mem.Allocator, arena: *std.heap.ArenaAllocator, fol
return try std.mem.concat(allocator, u8, &[_][]const u8{ env, suffix });
} else {
if (std.mem.eql(u8, folder_spec.env.name, "XDG_CONFIG_DIRS")) {
var iter = std.mem.split(u8, env, ":");
var iter = std.mem.splitScalar(u8, env, ':');
return try allocator.dupe(u8, iter.next() orelse "");
} else {
return try allocator.dupe(u8, env);
Expand Down

0 comments on commit 47076c6

Please sign in to comment.