mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
remove superfluous slicing syntax
This commit is contained in:
@ -118,7 +118,7 @@ pub const Contents = struct {
|
||||
|
||||
const cell_count = size.columns * size.rows;
|
||||
|
||||
const bg_cells = (try alloc.alloc(mtl_shaders.CellBg, cell_count))[0..cell_count];
|
||||
const bg_cells = try alloc.alloc(mtl_shaders.CellBg, cell_count);
|
||||
errdefer alloc.free(bg_cells);
|
||||
|
||||
@memset(bg_cells, .{0, 0, 0, 0});
|
||||
|
Reference in New Issue
Block a user