Commit f56cc9e0 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in do_replace_loop(), make sure old_pww is updated to the current value

of placewewant when a new match is found, so that edit_redraw() will
redraw the screen properly when only placewewant changes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1872 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 10 additions and 1 deletion
+10 -1
...@@ -124,6 +124,12 @@ CVS code - ...@@ -124,6 +124,12 @@ CVS code -
nregcomp() nregcomp()
- Rename the variable flags to eflags so as not to conflict with - Rename the variable flags to eflags so as not to conflict with
the global flags. (DLR) the global flags. (DLR)
- search.c:
do_replace_loop()
- Make sure old_pww is updated to the current value of
placewewant when a new match is found, so that edit_redraw()
will redraw the screen properly when only placewewant changes.
(DLR, found by Mike Frysinger)
- utils.c: - utils.c:
parse_num() parse_num()
- New function to parse numeric values, so that we don't have to - New function to parse numeric values, so that we don't have to
......
...@@ -635,8 +635,11 @@ int do_replace_loop(const char *needle, const filestruct *real_current, ...@@ -635,8 +635,11 @@ int do_replace_loop(const char *needle, const filestruct *real_current,
} }
#endif #endif
if (!replaceall) if (!replaceall) {
placewewant = xplustabs();
edit_redraw(current_save, old_pww); edit_redraw(current_save, old_pww);
old_pww = placewewant;
}
#ifdef HAVE_REGEX_H #ifdef HAVE_REGEX_H
if (ISSET(USE_REGEXP)) if (ISSET(USE_REGEXP))
......
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