Do not normalize non-ghost zone names.

These do not have unwanted decorations, but may include useful user
annotations (e.g. "Open file (/etc/passwd)"), which we would not want to
remove.
This commit is contained in:
Bartosz Taudul 2022-08-15 17:03:45 +02:00
parent d27cb4a094
commit 112406472a
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -517,7 +517,7 @@ int View::DrawZoneLevel( const V& vec, bool hover, double pxns, int64_t nspx, co
}
auto tsz = ImGui::CalcTextSize( zoneName );
if( m_shortenName != ShortenName::Never && ( m_shortenName != ShortenName::NoSpace || tsz.x > zsz ) )
if( m_shortenName == ShortenName::Always || ( ( m_shortenName == ShortenName::NoSpace || m_shortenName == ShortenName::NoSpaceAndNormalize ) && tsz.x > zsz ) )
{
zoneName = ShortenZoneName( m_shortenName, zoneName, tsz, zsz );
}