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
This commit is contained in:
Benno Schulenberg 2016-02-14 10:29:48 +00:00
parent f3a1d7ba06
commit 15947ac871
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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);