diff options
Diffstat (limited to 'src/macos.zig')
| -rw-r--r-- | src/macos.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/macos.zig b/src/macos.zig index 60f9e00e..af8410e0 100644 --- a/src/macos.zig +++ b/src/macos.zig @@ -880,7 +880,7 @@ fn watchInitialGeneration(st: *State, pane: u8, path: []const u8) ?file_watch.Ge const value = st.core.panes[pane] orelse return null; if (value.file) |file| if (std.mem.eql(u8, file.path, path)) return .{ .text = std.hash.Wyhash.hash(0, file.content) }; - if (comptime pardes.pdf_enabled) if (value.pdf) |*pdf| if (std.mem.eql(u8, pdf.path, path)) + if (comptime pardes.pdf_enabled) if (value.pdf) |pdf| if (std.mem.eql(u8, pdf.path, path)) return .{ .pdf = null }; return null; } @@ -998,7 +998,7 @@ fn reloadWatchedFile(st: *State, pane: u8, announce: bool) bool { }, .pdf => |old_identity| pdf: { if (comptime !pardes.pdf_enabled) break :pdf .no_change; - const state_before = if (current.pdf) |*pdf_before| pdf_before else break :pdf .no_change; + const state_before = if (current.pdf) |pdf_before| pdf_before else break :pdf .no_change; if (!std.mem.eql(u8, state_before.path, watched.path)) break :pdf .no_change; const before = file_watch.identify(st.io, watched.path) catch { retryWatchedFile(st, pane, generation); @@ -1012,7 +1012,7 @@ fn reloadWatchedFile(st: *State, pane: u8, announce: bool) bool { const after = st.core.panes[pane] orelse break :pdf .changed_uncommitted; if (after.serial != watched.serial) break :pdf .changed_uncommitted; - const pdf_state = if (after.pdf) |*pdf_after| pdf_after else break :pdf .changed_uncommitted; + const pdf_state = if (after.pdf) |pdf_after| pdf_after else break :pdf .changed_uncommitted; if (!std.mem.eql(u8, pdf_state.path, watched.path)) break :pdf .changed_uncommitted; const after_identity = file_watch.identify(st.io, watched.path) catch { retryWatchedFile(st, pane, generation); |
