fix: don't leak Buffer.file_path

This commit is contained in:
CJ van den Berg 2025-08-05 15:24:18 +02:00
parent 886a2582a3
commit c88e2dd975
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
5 changed files with 28 additions and 16 deletions

View file

@ -34,7 +34,7 @@ pub fn load_entries(palette: *Type) !usize {
else
"";
(try palette.entries.addOne()).* = .{
.label = buffer.file_path,
.label = buffer.get_file_path(),
.icon = buffer.file_type_icon orelse "",
.color = buffer.file_type_color,
.indicator = indicator,