mirror of
https://github.com/tstack/lnav
synced 2024-11-03 23:15:38 +00:00
[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:
parent
0ee6bdd5bf
commit
8df3ebf709
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user