commit 15947ac8718d8914506b9d9e20c87e8e49e4e5f3
parent f3a1d7ba0650d1e3d69fa744a9abf31c648f387a
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Sun, 14 Feb 2016 10:29:48 +0000
Restoring the mentioned behavior also for the internal spell fixer.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5642 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -2,6 +2,8 @@
* src/search.c (do_replace_loop): Make iterating through replacement
matches behave again like iterating through search matches: showing
them centered when found offscreen. This fixes Savannah bug #47127.
+ * src/text.c (do_int_spell_fix): Restore the above behavior also for
+ the internal spell fixer.
2016-02-13 Benno Schulenberg <bensberg@justemail.net>
* src/browser.c (do_browser, browser_refresh): Rebuild the file list
diff --git a/src/text.c b/src/text.c
@@ -2414,6 +2414,7 @@ bool do_int_spell_fix(const char *word)
xpt, strnlenpt(openfile->current->data,
openfile->current_x + match_len) - xpt, FALSE);
+ edit_redraw(openfile->current, openfile->placewewant);
edit_refresh();
do_replace_highlight(TRUE, exp_word);