diff options
Diffstat (limited to 'core/colors.zig')
| -rw-r--r-- | core/colors.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/colors.zig b/core/colors.zig index 3ca8a44e..4825ea3f 100644 --- a/core/colors.zig +++ b/core/colors.zig @@ -606,14 +606,14 @@ fn nextThemeFileGeneration(p: *Pardes) u32 { pub fn requestThemeFile(p: *Pardes, id: usize, argument: []const u8) void { const input = std.mem.trim(u8, argument, " \t\r\n"); if (input.len == 0 or !std.mem.endsWith(u8, input, ".zon")) { - p.reportError(id, "theme file", error.InvalidThemePath); + p.reportError(.at(id), "theme file", error.InvalidThemePath); return; } const absolute = std.Io.Dir.path.isAbsolute(input); const config_dir = if (absolute) null else p.configDir(); if (!absolute and config_dir == null) { - p.reportError(id, "theme file", error.NoConfigDirectory); + p.reportError(.at(id), "theme file", error.NoConfigDirectory); return; } @@ -622,12 +622,12 @@ pub fn requestThemeFile(p: *Pardes, id: usize, argument: []const u8) void { const dir = config_dir.?; const separator = if (dir.len > 0 and dir[dir.len - 1] != std.Io.Dir.path.sep) std.Io.Dir.path.sep_str else ""; break :path std.fmt.bufPrint(&joined, "{s}{s}{s}", .{ dir, separator, input }) catch { - p.reportError(id, "theme file", error.PathTooLong); + p.reportError(.at(id), "theme file", error.PathTooLong); return; }; }; if (!p.theme_file_path.set(resolved)) { - p.reportError(id, "theme file", error.PathTooLong); + p.reportError(.at(id), "theme file", error.PathTooLong); return; } p.theme_file_pane = @intCast(@min(id, MAX_PANES - 1)); |
