summaryrefslogtreecommitdiff
path: root/core/Event.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Event.zig')
-rw-r--r--core/Event.zig13
1 files changed, 7 insertions, 6 deletions
diff --git a/core/Event.zig b/core/Event.zig
index faea73cc..9988eede 100644
--- a/core/Event.zig
+++ b/core/Event.zig
@@ -3,6 +3,7 @@
const config = @import("config.zig");
const selection_pipe = @import("selection_pipe.zig");
const Stream = @import("Stream.zig");
+const Pane = @import("panes.zig").Pane;
const Layer = @import("Layer.zig");
const RowMetrics = Layer.Metrics;
const TagHit = Layer.TagHit;
@@ -78,14 +79,14 @@ pub const Event = union(enum) {
cell_pixels: CellPixels = .{},
row_metrics: ?RowMetrics = null,
},
- output: struct { pane: u8, bytes: []const u8 },
+ output: struct { pane: Pane.Id, bytes: []const u8 },
/// The pane's pty reached end of file: its output is over. An
/// interactive terminal closes; a command pane waits for `exited`.
- eof: struct { pane: u8, status: ?u8 = null },
+ eof: struct { pane: Pane.Id, status: ?u8 = null },
/// A command pane's child exited, with this status (null: unknown). It
/// is the command's end, whatever still holds its pty (a job it left in
/// the background prints on until end of file).
- exited: struct { pane: u8, status: ?u8 },
+ exited: struct { pane: Pane.Id, status: ?u8 },
lsp_resp: struct { id: u32, rows: ?[]const u8 },
pipe_resp: struct {
id: u32,
@@ -93,7 +94,7 @@ pub const Event = union(enum) {
outputs: []const []const u8,
failure: ?selection_pipe.Failure = null,
},
- file_changed: struct { pane: u8, bytes: []const u8 },
+ file_changed: struct { pane: Pane.Id, bytes: []const u8 },
/// A disk search's batch (Stream.zig), borrowed for the step.
search: Stream.Batch,
paste: []const u8,
@@ -112,10 +113,10 @@ pub const Event = union(enum) {
frontend: Frontend,
/// What the host's `addon` effect read off a library, or why not
/// (Addon.landed). Borrowed for the step.
- addon: struct { op: @import("Addon.zig").Op, pane: u8, kind: *const @import("Kind.zig").Loaded },
+ addon: struct { op: @import("Addon.zig").Op, pane: Pane.Id, kind: *const @import("Kind.zig").Loaded },
/// A kind's job answered (host_io.Job), at its kind's generation then.
/// Borrowed for the step.
- job: struct { pane: u8, serial: u32, token: u32, gen: u32, bytes: []const u8 },
+ job: struct { pane: Pane.Id, serial: u32, token: u32, gen: u32, bytes: []const u8 },
tick,
};