nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit bf6438671728b67a25b5984c47510d8c0b91b2d0
parent 1b902d62671e2a1ca0561f46ace6bc45d6e0a2a3
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Tue, 24 May 2016 10:23:02 +0200

tweaks: rename a variable, for aptness

Diffstat:
Msrc/files.c | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -1651,16 +1651,17 @@ bool check_operating_dir(const char *currpath, bool allow_tabcomp) * messed up and I'm blanket allowing insecure file writing operations'. */ int prompt_failed_backupwrite(const char *filename) { - static int i; + static int response; static char *prevfile = NULL; /* What was the last file we were * passed so we don't keep asking * this? Though maybe we should... */ if (prevfile == NULL || strcmp(filename, prevfile)) { - i = do_yesno_prompt(FALSE, - _("Failed to write backup file, continue saving? (Say N if unsure) ")); + response = do_yesno_prompt(FALSE, _("Failed to write backup file; " + "continue saving? (Say N if unsure.) ")); prevfile = mallocstrcpy(prevfile, filename); } - return i; + + return response; } void init_backup_dir(void)