simplify more
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3946 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
6f751500cc
commit
d23dcc5a25
|
@ -1886,12 +1886,11 @@ int do_writeout(bool exiting)
|
||||||
* an existing file. */
|
* an existing file. */
|
||||||
if (ISSET(RESTRICTED))
|
if (ISSET(RESTRICTED))
|
||||||
continue;
|
continue;
|
||||||
else {
|
|
||||||
i = do_yesno_prompt(FALSE,
|
i = do_yesno_prompt(FALSE,
|
||||||
_("File exists, OVERWRITE ? "));
|
_("File exists, OVERWRITE ? "));
|
||||||
if (i == 0 || i == -1)
|
if (i == 0 || i == -1)
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
/* If we're using restricted mode, we aren't allowed
|
/* If we're using restricted mode, we aren't allowed
|
||||||
* to change the name of a file once it has one,
|
* to change the name of a file once it has one,
|
||||||
* because that would allow reading from or writing
|
* because that would allow reading from or writing
|
||||||
|
|
Loading…
Reference in New Issue