mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
glfw: fix compile error
This commit is contained in:
@ -662,8 +662,9 @@ pub const Surface = struct {
|
|||||||
// Not supported except on Linux
|
// Not supported except on Linux
|
||||||
if (comptime builtin.os.tag != .linux) break :selection "";
|
if (comptime builtin.os.tag != .linux) break :selection "";
|
||||||
|
|
||||||
break :selection glfwNative.getX11SelectionString() orelse
|
const raw = glfwNative.getX11SelectionString() orelse
|
||||||
return glfw.mustGetErrorCode();
|
return glfw.mustGetErrorCode();
|
||||||
|
break :selection std.mem.span(raw);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user