From 23b8dfd98e9453cae15ee2e83ae1769cbed86f1d Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 29 Mar 2016 14:56:32 +0000 Subject: [PATCH] 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 --- ChangeLog | 2 ++ src/text.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d4a04190..37be69ab 100644 --- 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 * src/winio.c (statusbar): Don't bother putting back the cursor in diff --git a/src/text.c b/src/text.c index be7c47c3..0a93a15e 100644 --- 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); } -- 2.39.5