save the original file, if possible, since that's better than
saving nothing. (DLR, problem found by Bill Marcum, solution
suggested by Jordi)
- - Clarify the error message when writing a temporary file for
- prepending fails. (DLR)
+ - Clarify the error messages when creating a temporary file or
+ writing one for prepending fails. (DLR)
- Simplify the routine for closing the file just before we
indicate success on the statusbar. (DLR)
- global.c:
(DLR)
- Change all rcfile error messages to refer to commands instead
of directives, for consistency with nanorc.5. (DLR)
+- text.c:
+ do_spell()
+ - Clarify the error message when creating a temporary file
+ fails. (DLR)
- winio.c:
parse_kbinput()
- If we get NANO_CONTROL_8, properly handle it in all cases.
tempname = safe_tempfile(&f);
if (tempname == NULL) {
- statusbar(_("Could not create temp file: %s"),
+ statusbar(_("Error writing temp file: %s"),
strerror(errno));
goto cleanup_and_exit;
}
const char *spell_msg;
if (temp == NULL) {
- statusbar(_("Could not create temp file: %s"), strerror(errno));
+ statusbar(_("Error writing temp file: %s"), strerror(errno));
return;
}