summaryrefslogtreecommitdiff
path: root/core/File.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/File.zig')
-rw-r--r--core/File.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/File.zig b/core/File.zig
index 58544b62..f611bbbd 100644
--- a/core/File.zig
+++ b/core/File.zig
@@ -2439,8 +2439,9 @@ pub fn changed(p: *Pardes, id: u8, bytes: []const u8) void {
if (f.disk_newer == disk) return;
f.disk_newer = disk;
f.disk_newer_warned = false;
- var said: pardes.Kind.Buf(limits.host_path_cap + 64) = .{};
- p.setMessage(.at(id), said.print("{s} changed on disk (get reloads it, Save overwrites it)", .{f.path[0..@min(f.path.len, limits.host_path_cap)]}));
+ // A question in its tag, never the keyboard's (pick-ui SPEC ยง10.2):
+ // one waiting already is the one about it.
+ if (p.messages.waiting(pane) == null) pardes.Messages.say(p, .question, id, "changed on disk").asks = .disk;
var rec: [16]u8 = undefined;
pardes.ctlfs.events.notePath(p, "changed", std.fmt.bufPrint(&rec, "{d}", .{pane.serial}) catch unreachable); // a u32 fits 16
return;