Index: apps/plugins/text_editor.c =================================================================== --- apps/plugins/text_editor.c (revision 19829) +++ apps/plugins/text_editor.c (working copy) @@ -174,13 +174,19 @@ if (!filename[0] || !overwrite) { rb->strcpy(filename,"/"); - rb->kbd_input(filename,MAX_PATH); + if (rb->kbd_input(filename,MAX_PATH) < 0) + { + filename[0] = '\0'; + rb->splash(HZ*2, "Changes NOT saved"); + return; + } } fd = rb->open(filename,O_WRONLY|O_CREAT|O_TRUNC); if (fd < 0) { - rb->splash(HZ*2, "Changes NOT saved"); + filename[0] = '\0'; + rb->splash(HZ*2, "Changes NOT saved""); return; }