in do_spell(), when setting i to the return value of
write_(marked_)?file(), use the "?" operator instead of an if/else clause git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3970 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
8125e08bfa
commit
b6c4dbffdb
|
@ -32,6 +32,10 @@ GNU nano 2.0.1 - 2006.11.20
|
||||||
overwriting an existing file when in restricted mode. (DLR)
|
overwriting an existing file when in restricted mode. (DLR)
|
||||||
- Fix problem where a file could sometimes be overwritten
|
- Fix problem where a file could sometimes be overwritten
|
||||||
without a warning prompt. (DLR)
|
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:
|
- winio.c:
|
||||||
do_replace_highlight()
|
do_replace_highlight()
|
||||||
- Include the code to display zero-length matches even when
|
- Include the code to display zero-length matches even when
|
||||||
|
|
|
@ -2311,12 +2311,12 @@ void do_spell(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i =
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
if (openfile->mark_set)
|
(openfile->mark_set) ? write_marked_file(temp, temp_file, TRUE,
|
||||||
i = write_marked_file(temp, temp_file, TRUE, OVERWRITE);
|
OVERWRITE) :
|
||||||
else
|
|
||||||
#endif
|
#endif
|
||||||
i = write_file(temp, temp_file, TRUE, OVERWRITE, FALSE);
|
write_file(temp, temp_file, TRUE, OVERWRITE, FALSE);
|
||||||
|
|
||||||
if (i == -1) {
|
if (i == -1) {
|
||||||
statusbar(_("Error writing temp file: %s"), strerror(errno));
|
statusbar(_("Error writing temp file: %s"), strerror(errno));
|
||||||
|
|
Loading…
Reference in New Issue