1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 413396: Language cannot be determined for files without extension.

Change-Id: I31579f0eb33f0797dd09dab0c2de9de88967fd4d
Signed-off-by: Markus Schorn <markus.schorn@windriver.com>
Reviewed-on: https://git.eclipse.org/r/22362
Reviewed-by: Andrew Gvozdev <angvoz.dev@gmail.com>
IP-Clean: Andrew Gvozdev <angvoz.dev@gmail.com>
Tested-by: Andrew Gvozdev <angvoz.dev@gmail.com>
This commit is contained in:
Markus Schorn 2014-02-21 14:04:06 +01:00 committed by Andrew Gvozdev
parent ce1620f8cc
commit 4f2fe55e90

View file

@ -577,7 +577,7 @@ public class LanguageManager {
IPath location = file.getLocation();
String filename;
if (location != null) {
filename = location.toString();
filename = location.lastSegment();
} else {
filename = file.getName();
}