began support vim mark system

This commit is contained in:
Robert Burnett 2025-05-12 09:39:51 -05:00 committed by CJ van den Berg
parent da95070616
commit d88b15ce04
3 changed files with 39 additions and 1 deletions

View file

@ -27,6 +27,11 @@ pub const Metrics = struct {
pub const egc_last_func = *const fn (self: Metrics, egcs: []const u8) []const u8;
};
pub const MarkLocation = struct {
row: usize,
col: usize,
};
arena: std.heap.ArenaAllocator,
allocator: Allocator,
external_allocator: Allocator,
@ -54,6 +59,8 @@ file_type_name: ?[]const u8 = null,
file_type_icon: ?[]const u8 = null,
file_type_color: ?u24 = null,
marks: [256]?MarkLocation = .{null} ** 256,
pub const EolMode = enum { lf, crlf };
pub const EolModeTag = @typeInfo(EolMode).@"enum".tag_type;