summaryrefslogtreecommitdiff
path: root/src/Layer.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Layer.zig')
-rw-r--r--src/Layer.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Layer.zig b/src/Layer.zig
index 7a5fcf7e..ba45bc88 100644
--- a/src/Layer.zig
+++ b/src/Layer.zig
@@ -51,7 +51,7 @@ cols: u16 = 0,
rows: u16 = 0,
/// A body's compact rows, from its top.
context_rows: u16 = 0,
-context_separators: std.bit_set.StaticBitSet(limits.wrap_rows) = .initEmpty(),
+context_separators: std.bit_set.StaticBitSet(limits.wrap_rows) = .empty,
/// `rows * cols`, row after row.
cells: []pardes.Cell = &.{},
cursor: ?struct { x: u16, y: u16, bar: bool = false } = null,
@@ -72,7 +72,7 @@ pub fn capacity(layer: *const Layer, metrics: Metrics) u16 {
}
pub fn setContextLines(layer: *Layer, lines: []const i32) void {
- layer.context_separators = .initEmpty();
+ layer.context_separators = .empty;
const count = @min(lines.len, layer.context_rows);
var index: usize = 0;
while (index + 1 < count and index < limits.wrap_rows) : (index += 1) {