fix filesystem lister names

This commit is contained in:
Ryan Fleury
2024-05-26 12:47:47 -07:00
parent dd7cce2c3a
commit 05c751a61a
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -1516,8 +1516,12 @@ df_display_string_from_entity(Arena *arena, DF_Entity *entity)
case DF_EntityKind_Module: case DF_EntityKind_Module:
{ {
result = push_str8_copy(arena, entity->name); result = push_str8_copy(arena, str8_skip_last_slash(entity->name));
result = str8_skip_last_slash(result); }break;
case DF_EntityKind_RecentProject:
{
result = push_str8_copy(arena, str8_skip_last_slash(entity->name));
}break; }break;
} }
return result; return result;
+1 -1
View File
@@ -2856,7 +2856,7 @@ DF_VIEW_UI_FUNCTION_DEF(FileSystem)
// rjf: filename // rjf: filename
UI_PrefWidth(ui_pct(1, 0)) UI_PrefWidth(ui_pct(1, 0))
{ {
UI_Box *box = ui_build_box_from_stringf(UI_BoxFlag_DrawText, "%S##%p", file->filename, view); UI_Box *box = ui_build_box_from_string(UI_BoxFlag_DrawText|UI_BoxFlag_DisableIDString, file->filename);
ui_box_equip_fuzzy_match_ranges(box, &file->match_ranges); ui_box_equip_fuzzy_match_ranges(box, &file->match_ranges);
} }
} }