mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 01:06:08 +03:00
terminal/kitty-gfx: mistaken logic
This commit is contained in:
@ -76,8 +76,8 @@ pub const LoadingImage = struct {
|
|||||||
return error.InvalidData;
|
return error.InvalidData;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (comptime builtin.os != .windows) {
|
if (comptime builtin.os.tag != .windows) {
|
||||||
if (std.mem.indexOfScalar(u8, buf[0..size], 0) == null) {
|
if (std.mem.indexOfScalar(u8, buf[0..size], 0) != null) {
|
||||||
// std.os.realpath *asserts* that the path does not have
|
// std.os.realpath *asserts* that the path does not have
|
||||||
// internal nulls instead of erroring.
|
// internal nulls instead of erroring.
|
||||||
log.warn("failed to get absolute path: BadPathName", .{});
|
log.warn("failed to get absolute path: BadPathName", .{});
|
||||||
|
Reference in New Issue
Block a user