nano

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

commit d3fdd20471b200fdf6f52584d3ab1ef9f2b33996
parent 82492ead4705794b2175ca7fbca4781b2a3e9a77
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 20 Feb 2019 17:39:04 +0100

tweaks: rename an overlooked variable from a single letter to a word

Diffstat:
Msrc/text.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -2817,18 +2817,18 @@ void do_linter(void) if (openfile->current_stat == NULL || openfile->current_stat->st_ino != lintfileinfo.st_ino) { char *msg = charalloc(1024 + strlen(curlint->filename)); - int i; + int choice; sprintf(msg, _("This message is for unopened file %s," " open it in a new buffer?"), curlint->filename); - i = do_yesno_prompt(FALSE, msg); + choice = do_yesno_prompt(FALSE, msg); currmenu = MLINTER; free(msg); - if (i == -1) { + if (choice == -1) { statusbar(_("Cancelled")); break; - } else if (i == 1) { + } else if (choice == 1) { open_buffer(curlint->filename, TRUE); } else { #endif