summaryrefslogtreecommitdiff
path: root/apps/plugins/text_editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/text_editor.c')
-rw-r--r--apps/plugins/text_editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c
index 6767940..89fdc39 100644
--- a/apps/plugins/text_editor.c
+++ b/apps/plugins/text_editor.c
@@ -170,7 +170,7 @@ void save_changes(int overwrite)
int fd;
int i;
- if (!filename[0] || overwrite)
+ if (!filename[0] || !overwrite)
{
rb->strcpy(filename,"/");
rb->kbd_input(filename,1024);