diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index f03cdcf..8e7cdba 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c @@ -174,7 +174,12 @@ void save_changes(int overwrite) 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);