summaryrefslogtreecommitdiff
path: root/core/Query.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Query.zig')
-rw-r--r--core/Query.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Query.zig b/core/Query.zig
index 784e6af4..dacc11a1 100644
--- a/core/Query.zig
+++ b/core/Query.zig
@@ -1756,7 +1756,7 @@ fn promote(p: *Pardes, qid: usize, id: usize) void {
f.syntax_dirty = true;
pane.attached_to = null;
if (f.on_disk) p.recent.opened(p.recentGpa(), f.path);
- if (filesystem.localPath(f.path) != null) p.emit(.{ .watch = .{ .pane = @intCast(id), .on = true } });
+ if (filesystem.localPath(f.path) != null) p.emit(.{ .watch = .{ .pane = .at(id), .on = true } });
pardes.ctlfs.events.noteLog(p, .rename, pane);
p.panes[qid].?.query.?.preview = 0;
}