mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
Don't hide the library directory when it appears alone
src/support/filetools.C (makeDisplayPath): do not shorten path when it is the libdir one. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17442 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
de0af94c83
commit
faa47db187
@ -1004,7 +1004,7 @@ docstring const makeDisplayPath(string const & path, unsigned int threshold)
|
||||
|
||||
// If file is from LyXDir, display it as if it were relative.
|
||||
string const system = package().system_support();
|
||||
if (prefixIs(str, system))
|
||||
if (prefixIs(str, system) && str != system)
|
||||
return from_utf8("[" + str.erase(0, system.length()) + "]");
|
||||
|
||||
// replace /home/blah with ~/
|
||||
|
Loading…
Reference in New Issue
Block a user