diff options
Diffstat (limited to 'src/Core.zig')
| -rw-r--r-- | src/Core.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Core.zig b/src/Core.zig index 54f0233e..5c68a5af 100644 --- a/src/Core.zig +++ b/src/Core.zig @@ -1192,7 +1192,7 @@ pub fn dropPendingWrite(p: *Pardes, id: usize) void { pub fn postEvent(p: *Pardes, ev: Event) void { switch (ev) { .key => |k| std.debug.assert(k.text.len == 0), - .output, .paste, .lsp_resp, .pipe_resp, .search, .file_changed, .command => unreachable, + .output, .paste, .lsp_resp, .pipe_resp, .search, .file_changed, .command, .addon => unreachable, else => {}, } if (p.in_len == p.in_q.len) return; @@ -1483,6 +1483,7 @@ pub fn serveFs(p: *Pardes, req: ctlfs.Req) ctlfs.Reply { // step does: the cursor and scroll reconciled, the scripted panes // told, and the panes it made announced to /log now rather than at // the end of whatever the editor does next. + pardes.Kind.step(p); p.sync(); p.fsReport(); // A /focus write moves the keyboard as a click does: the programs @@ -1622,6 +1623,7 @@ pub fn update(p: *Pardes, ev: Event) void { if (focused) if (p.host.vtable.newer_build) |f| if (f(p.host.ctx)) p.setMessage(p.active, newer_build_words); }, .handed => |h| p.handover.finish(p, h.seq, h.to, h.failure), + .addon => |a| pardes.Kind.landed(p, a.op, a.pane, a.ok, a.text), .frontend => |f| { p.frontend = f; }, |
