From 6acf2b40afd0845175812197e86392e5cc3c4cfc Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 12 Feb 2024 19:35:02 -0800 Subject: [PATCH] terminal/kitty-gfx: mistaken logic --- src/terminal/kitty/graphics_image.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminal/kitty/graphics_image.zig b/src/terminal/kitty/graphics_image.zig index b5c36db80..242954ecc 100644 --- a/src/terminal/kitty/graphics_image.zig +++ b/src/terminal/kitty/graphics_image.zig @@ -76,8 +76,8 @@ pub const LoadingImage = struct { return error.InvalidData; }; - if (comptime builtin.os != .windows) { - if (std.mem.indexOfScalar(u8, buf[0..size], 0) == null) { + if (comptime builtin.os.tag != .windows) { + if (std.mem.indexOfScalar(u8, buf[0..size], 0) != null) { // std.os.realpath *asserts* that the path does not have // internal nulls instead of erroring. log.warn("failed to get absolute path: BadPathName", .{});