macos: fix uikit build
parent
829dd1b9b2
commit
842583b628
|
|
@ -46,6 +46,9 @@ extension Ghostty {
|
|||
|
||||
/// True when the surface is in readonly mode.
|
||||
@Published private(set) var readonly: Bool = false
|
||||
|
||||
/// True when the surface should show a highlight effect (e.g., when presented via goto_split).
|
||||
@Published private(set) var highlighted: Bool = false
|
||||
|
||||
// Returns sizing information for the surface. This is the raw C
|
||||
// structure because I'm lazy.
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ extension String {
|
|||
return self.prefix(maxLength) + trailing
|
||||
}
|
||||
|
||||
#if canImport(AppKit)
|
||||
#if canImport(AppKit)
|
||||
func temporaryFile(_ filename: String = "temp") -> URL {
|
||||
let url = FileManager.default.temporaryDirectory
|
||||
.appendingPathComponent(filename)
|
||||
|
|
@ -16,7 +16,6 @@ extension String {
|
|||
try? string.write(to: url, atomically: true, encoding: .utf8)
|
||||
return url
|
||||
}
|
||||
#endif
|
||||
|
||||
/// Returns the path with the home directory abbreviated as ~.
|
||||
var abbreviatedPath: String {
|
||||
|
|
@ -26,4 +25,5 @@ extension String {
|
|||
}
|
||||
return self
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue