diff --git a/src/main/java/info/istlab/IoTP/Editor.java b/src/main/java/info/istlab/IoTP/Editor.java index 9f7d50d..47a0b97 100644 --- a/src/main/java/info/istlab/IoTP/Editor.java +++ b/src/main/java/info/istlab/IoTP/Editor.java @@ -62,11 +62,11 @@ textArea.setTabsEmulated(true); try { - String d = new String(App.workingDir); + String d = new String(App.workingDir+File.separator); if (d.contains("\\")) { d = d.replace("\\", "\\\\"); } - setTitle(file.getCanonicalPath().replaceAll(d + File.separator, "")); + setTitle(file.getCanonicalPath().replaceAll(d , "")); } catch (IOException e) { e.printStackTrace(); }