diff options
Diffstat (limited to 'apps/plugins/text_editor.c')
-rw-r--r-- | apps/plugins/text_editor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index bf69acff93..8040d00f22 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c | |||
@@ -178,7 +178,7 @@ void save_changes(int overwrite) | |||
178 | fd = rb->open(filename,O_WRONLY|O_CREAT|O_TRUNC); | 178 | fd = rb->open(filename,O_WRONLY|O_CREAT|O_TRUNC); |
179 | if (fd < 0) | 179 | if (fd < 0) |
180 | { | 180 | { |
181 | rb->splash(HZ*2,1,"Changes NOT saved"); | 181 | rb->splash(HZ*2, "Changes NOT saved"); |
182 | return; | 182 | return; |
183 | } | 183 | } |
184 | 184 | ||
@@ -315,7 +315,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
315 | fd = rb->open(filename,O_RDONLY); | 315 | fd = rb->open(filename,O_RDONLY); |
316 | if (fd<0) | 316 | if (fd<0) |
317 | { | 317 | { |
318 | rb->splash(HZ*2,true,"Couldnt open file: %s",(char*)parameter); | 318 | rb->splash(HZ*2,"Couldnt open file: %s",(char*)parameter); |
319 | return PLUGIN_ERROR; | 319 | return PLUGIN_ERROR; |
320 | } | 320 | } |
321 | /* read in the file */ | 321 | /* read in the file */ |
@@ -323,7 +323,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
323 | { | 323 | { |
324 | if (!do_action(ACTION_INSERT,temp_line,line_count)) | 324 | if (!do_action(ACTION_INSERT,temp_line,line_count)) |
325 | { | 325 | { |
326 | rb->splash(HZ*2,true,"Error reading file: %s",(char*)parameter); | 326 | rb->splash(HZ*2,"Error reading file: %s",(char*)parameter); |
327 | rb->close(fd); | 327 | rb->close(fd); |
328 | return PLUGIN_ERROR; | 328 | return PLUGIN_ERROR; |
329 | } | 329 | } |