Commit f3a1d7ba authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Making the iteration through replacement matches behave the same again as the

iteration through search matches: showing them centered when found offscreen.
This fixes Savannah bug #47127.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5641 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 9 additions and 0 deletions
+9 -0
2016-02-14 Benno Schulenberg <bensberg@justemail.net>
* 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.
2016-02-13 Benno Schulenberg <bensberg@justemail.net>
* src/browser.c (do_browser, browser_refresh): Rebuild the file list
only when necessary, not for each and every cursor movement. This
......
......@@ -708,6 +708,10 @@ ssize_t do_replace_loop(
xpt, strnlenpt(openfile->current->data,
openfile->current_x + match_len) - xpt, FALSE);
/* If the match is offscreen, center it; otherwise, let it be. */
edit_redraw(openfile->current, openfile->placewewant);
/* Now refresh the entire edit window, in case it scrolled. */
edit_refresh();
/* Don't show cursor, to not distract from highlighted match. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment