diff options
Diffstat (limited to 'core/exec.zig')
| -rw-r--r-- | core/exec.zig | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/core/exec.zig b/core/exec.zig index 2528805f..dbea2b2f 100644 --- a/core/exec.zig +++ b/core/exec.zig @@ -617,8 +617,7 @@ pub fn sendToRepl(p: *Pardes, from: usize, to: usize, text: []const u8) void { p.setMessage(.at(from), warn.print("Repl: {s} takes no bracketed paste; a blank line in a block ends it", .{id})); } var said: pardes.Kind.Buf(64) = .{}; - p.setMessage(.at(from), said.print("\u{2192} {s}", .{id})); - src.msg_sent = true; + pardes.Messages.say(p, .echo, from, said.print("\u{2192} {s}", .{id})); var rec: [96]u8 = undefined; pardes.ctlfs.events.notePath(p, "send", std.fmt.bufPrint(&rec, "{d} {d} {s}", .{ src.serial, dst.serial, id }) catch return); } @@ -974,15 +973,14 @@ pub fn runBuiltinFrom(p: *Pardes, b: Builtin, id: usize, txt: []const u8, arg: ? // No pane at all (the window Delcol emptied): a word runs all the same, // with a stand-in that is no pane (New, Newcol, Exit are what make sense). const pane = p.panes[id] orelse (if (builtins.registry.scope(b) == .session or panes.anyPane(p) == null) panes.standIn(p) orelse return else return); - // A builtin says its own name before it runs, so a tagline click is - // legible even when what it did is invisible. Whatever the builtin - // then says for itself replaces the announcement. It is the message - // row's only, never /log's: a msg record is something said. + // A builtin says its own name before it runs, an echo, so a tagline + // click is legible even when what it did is invisible. Whatever the + // builtin then says for itself retires it. It is the message row's + // only, never /log's: a msg record is something said. if (p.announce and p.settings.verbose and builtins.registry.announces(b)) { p.fs.unlogged = true; - p.setMessage(.at(id), @tagName(b)); + pardes.Messages.say(p, .echo, id, @tagName(b)); p.fs.unlogged = false; - pane.msg_announcement = true; } // A word for one kind of pane, on another: refused with why, not a // silent nothing (Palette on a file, Filter on a PDF). |
