1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

cut the filename at the last '.' not at the first in tab-names of the editor

This commit is contained in:
Georg von Zengen
2014-02-27 14:30:19 +01:00
parent 3be6eb84b9
commit efedfa7049

View File

@ -87,7 +87,7 @@ public class SketchCode {
protected void makePrettyName() { protected void makePrettyName() {
prettyName = file.getName(); prettyName = file.getName();
int dot = prettyName.indexOf('.'); int dot = prettyName.lastIndexOf('.');
prettyName = prettyName.substring(0, dot); prettyName = prettyName.substring(0, dot);
} }