overwriting an existing file when in restricted mode. (DLR)
- Fix problem where a file could sometimes be overwritten
without a warning prompt. (DLR)
+- text.c:
+ do_spell()
+ - When setting i to the return value of write_(marked_)?file(),
+ use the "?" operator instead of an if/else clause. (DLR)
- winio.c:
do_replace_highlight()
- Include the code to display zero-length matches even when
return;
}
+ i =
#ifndef NANO_TINY
- if (openfile->mark_set)
- i = write_marked_file(temp, temp_file, TRUE, OVERWRITE);
- else
+ (openfile->mark_set) ? write_marked_file(temp, temp_file, TRUE,
+ OVERWRITE) :
#endif
- i = write_file(temp, temp_file, TRUE, OVERWRITE, FALSE);
+ write_file(temp, temp_file, TRUE, OVERWRITE, FALSE);
if (i == -1) {
statusbar(_("Error writing temp file: %s"), strerror(errno));