Organise imports

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2026-02-07 17:01:11 +01:00
parent 950eeed3ee
commit fd81da7cbd
20 changed files with 89 additions and 91 deletions

View File

@@ -1,11 +1,11 @@
const std = @import("std");
const TerminalBuffer = @import("../TerminalBuffer.zig");
const Allocator = std.mem.Allocator;
const DynamicString = std.ArrayListUnmanaged(u8);
const TerminalBuffer = @import("../TerminalBuffer.zig");
const termbox = TerminalBuffer.termbox;
const DynamicString = std.ArrayListUnmanaged(u8);
const Text = @This();
allocator: Allocator,
@@ -21,12 +21,10 @@ masked: bool,
maybe_mask: ?u32,
pub fn init(allocator: Allocator, buffer: *TerminalBuffer, masked: bool, maybe_mask: ?u32) Text {
const text: DynamicString = .empty;
return .{
.allocator = allocator,
.buffer = buffer,
.text = text,
.text = .empty,
.end = 0,
.cursor = 0,
.visible_start = 0,