[top_status_line] use the unique path for the filename if there is not enough room to display the full path

Trying to address #526
This commit is contained in:
Timothy Stack 2018-07-22 07:17:45 -07:00
parent 0ee6bdd5bf
commit 8df3ebf709

View File

@ -132,7 +132,11 @@ public:
sf_format.clear();
}
sf_filename.set_value(lf->get_filename());
if (sf_filename.get_width() > lf->get_filename().length()) {
sf_filename.set_value(lf->get_filename());
} else {
sf_filename.set_value(lf->get_unique_path());
}
}
else {
sf_format.clear();