mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 22:20:19 +02:00
IDE: package editor: extend unit/include path: shorten paths that are not sub directories, bug #24272
git-svn-id: trunk@40803 -
This commit is contained in:
parent
9f28f08acd
commit
e8c90c6b1f
@ -2022,7 +2022,7 @@ begin
|
||||
// check if directory is already in the unit path of the package
|
||||
NewDirectory:=ExtractFilePath(AnUnitFilename);
|
||||
ShortDirectory:=NewDirectory;
|
||||
LazPackage.ShortenFilename(ShortDirectory,false);
|
||||
LazPackage.ShortenFilename(ShortDirectory,true);
|
||||
if ShortDirectory='' then exit;
|
||||
LazPackage.LongenFilename(NewDirectory);
|
||||
NewDirectory:=ChompPathDelim(NewDirectory);
|
||||
|
Loading…
Reference in New Issue
Block a user