Use pathname_short representation in menu_entries.c to allow for correct viewing of compressed paths in history list

This commit is contained in:
Timo Strunk 2014-09-12 17:49:31 +02:00
parent aeb849b109
commit 8d3e89cc7e

View File

@ -272,11 +272,9 @@ int menu_entries_push_list(menu_handle_t *menu,
if (path)
{
char path_short[PATH_MAX];
fill_pathname(path_short, path_basename(path), "",
sizeof(path_short));
snprintf(fill_buf, sizeof(fill_buf), "%s (%s)",
path_short, core_name);
fill_short_pathname_representation(path_short,path,sizeof(path_short));
snprintf(fill_buf,sizeof(fill_buf),"%s (%s)",
path_short,core_name);
}
file_list_push(list, fill_buf, "",