fix: don't leak Buffer.file_path
This commit is contained in:
parent
886a2582a3
commit
c88e2dd975
5 changed files with 28 additions and 16 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue