diff options
Diffstat (limited to 'core/jj.zig')
| -rw-r--r-- | core/jj.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/jj.zig b/core/jj.zig index c1d07662..b278f4ba 100644 --- a/core/jj.zig +++ b/core/jj.zig @@ -2534,7 +2534,7 @@ const Repo = struct { fn told(p: *Pardes, id: usize) []const u8 { const pane = p.panes[id].?; - return pane.msg[0..pane.msg_len]; + return p.messages.saidBy(pane); } test "At shows a file at a revision beside it, read-only, coloured as its file; a Look at path@rev:line goes to it; At in it turns it in place; jj's refusals are said" { @@ -3656,8 +3656,7 @@ test "the layer's lines are the pane's text, read-only: j and k go onto them, a // the path there opens it (no selection held: B2 in one runs it). // (The refusals' words, stacked in the notice band over the body's // first rows, gone.) - pane.msg_len = 0; - pane.msg_older_len = 0; + p.messages.live_len = 0; p.view().active = id; Lines.at(pane, 0, 0); p.sync(); |
