mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Try to recover if we loose track.
This commit is contained in:
parent
04682bb2bc
commit
6e48845518
1 changed files with 3 additions and 5 deletions
|
@ -45,11 +45,9 @@ public class MakeErrorParser implements IErrorParser {
|
|||
*/
|
||||
int level = getDirectoryLevel(line);
|
||||
int parseLevel = eoParser.getDirectoryLevel();
|
||||
if (level <= parseLevel) {
|
||||
for ( ; level <= parseLevel; level++) {
|
||||
eoParser.popDirectory();
|
||||
}
|
||||
}
|
||||
for (; level < parseLevel; level++) {
|
||||
eoParser.popDirectory();
|
||||
}
|
||||
eoParser.pushDirectory(new Path(dir));
|
||||
} else {
|
||||
eoParser.popDirectory();
|
||||
|
|
Loading…
Add table
Reference in a new issue