Improved structure root detection
This commit is contained in:
parent
8ae4bed832
commit
3fd7d34647
@ -78,6 +78,9 @@ class ExpressionFormatter implements MatchFormatter {
|
|||||||
File structureRoot = getStructureRoot(source);
|
File structureRoot = getStructureRoot(source);
|
||||||
if (structureRoot != null) {
|
if (structureRoot != null) {
|
||||||
for (File f : listPath(parent)) {
|
for (File f : listPath(parent)) {
|
||||||
|
if (isVolumeRoot(structureRoot)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (isStructureRoot(f)) {
|
if (isStructureRoot(f)) {
|
||||||
structureRoot = structureRoot.getParentFile();
|
structureRoot = structureRoot.getParentFile();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user