feat(buffer): restore previous file type when switching buffers

This commit is contained in:
CJ van den Berg 2025-02-11 11:31:16 +01:00
parent f627a59f4d
commit 02ba05c500
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 27 additions and 18 deletions

View file

@ -50,6 +50,10 @@ curr_history: ?*UndoNode = null,
mtime: i64,
utime: i64,
file_type_name: ?[]const u8 = null,
file_type_icon: ?[]const u8 = null,
file_type_color: ?u24 = null,
pub const EolMode = enum { lf, crlf };
pub const EolModeTag = @typeInfo(EolMode).Enum.tag_type;