diff options
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/file_watch.zig | 6 | ||||
| -rw-r--r-- | dev/macos/Sources/AppDelegate.swift | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/dev/file_watch.zig b/dev/file_watch.zig index c575f436..a0a500d7 100644 --- a/dev/file_watch.zig +++ b/dev/file_watch.zig @@ -611,12 +611,12 @@ pub fn applyThemeEffect( const pane = request.pane; const bytes = filesystem.readFile(&pardes.tape.none, gpa, request.path) catch |err| { colors.failThemeFile(core, generation, err); - core.noteLateFailure(.at(pane)); + core.noteLateFailure(pane); return false; }; defer gpa.free(bytes); if (!colors.loadThemeFile(core, generation, bytes)) { - core.noteLateFailure(.at(pane)); + core.noteLateFailure(pane); return false; } const hash = std.hash.Wyhash.hash(0, bytes); @@ -659,7 +659,7 @@ pub fn reloadTheme( live.generation = .{ .text = hash }; if (announce) { var msg_buf: [256]u8 = undefined; - core.setMessage(.at(request.pane), message.stamp(&msg_buf, "reloaded theme", request.path)); + core.setMessage(request.pane, message.stamp(&msg_buf, "reloaded theme", request.path)); } return false; } diff --git a/dev/macos/Sources/AppDelegate.swift b/dev/macos/Sources/AppDelegate.swift index 4168999f..5ee775cf 100644 --- a/dev/macos/Sources/AppDelegate.swift +++ b/dev/macos/Sources/AppDelegate.swift @@ -132,7 +132,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, PardesViewDelegate { // to change the day macos_min_version reaches 14. NSApp.activate(ignoringOtherApps: true) - var runtime = pardes_callbacks_s( + var callbacks = pardes_callbacks_s( userdata: Unmanaged.passUnretained(self).toOpaque(), wakeup: { ud in // A pty reader thread. Every other function in pardes.h is @@ -168,7 +168,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, PardesViewDelegate { // greeting until it has seen a size, so a correction sent afterwards // arrives with the first prompt already wrapped to the wrong width. let grid = view.gridSize - let rc = pardes_init(&runtime, grid.cols, grid.rows) + let rc = pardes_init(&callbacks, grid.cols, grid.rows) if rc != 0 { NSLog("pardes: the core failed to boot at \(grid.cols)x\(grid.rows), pardes_init returned \(rc)") // Not NSApp.terminate — that runs applicationWillTerminate, which |
