nano

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

commit 23b8dfd98e9453cae15ee2e83ae1769cbed86f1d
parent f9d6aa9ba3295ebddc91f9f111280291d82b39b9
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Tue, 29 Mar 2016 14:56:32 +0000

Allowing the user to stop replacing a word without aborting also the
whole spell-fixing session.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5774 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 2++
Msrc/text.c | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -6,6 +6,8 @@ Leave the cursor off during Unicode input, for extra feedback. * src/browser.c (do_browser): Improve the wording of a message. * src/chars.c (is_valid_unicode): Speed up Unicode validation. + * src/text.c (do_int_spell_fix): Allow to stop replacing a word + without aborting the entire spell-fixing session. 2016-03-28 Benno Schulenberg <bensberg@justemail.net> * src/winio.c (statusbar): Don't bother putting back the cursor in diff --git a/src/text.c b/src/text.c @@ -2448,7 +2448,7 @@ bool do_int_spell_fix(const char *word) if (!canceled && strcmp(word, answer) != 0) { openfile->current_x--; - do_replace_loop(TRUE, &canceled, openfile->current, + do_replace_loop(TRUE, NULL, openfile->current, &openfile->current_x, word); }