mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
terminal/kitty-gfx: mistaken logic
This commit is contained in:
@ -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", .{});
|
||||
|
Reference in New Issue
Block a user