summaryrefslogtreecommitdiffstats
path: root/apps/files_texteditor/js/editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_texteditor/js/editor.js')
-rw-r--r--apps/files_texteditor/js/editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js
index 36ab196b642..2471d294a85 100644
--- a/apps/files_texteditor/js/editor.js
+++ b/apps/files_texteditor/js/editor.js
@@ -309,7 +309,7 @@ $(document).ready(function(){
a.attr('href','#');
a.click(function(){
var pos=text.lastIndexOf('/')
- var file=text.substr(pos);
+ var file=text.substr(pos + 1);
var dir=text.substr(0,pos);
showFileEditor(dir,file);
});