replacing: start at the region's edge instead of one step before it
After the changes to the search routine, it is no longer necessary to take one step back before starting a replacement session. This fixes https://savannah.gnu.org/bugs/?50147.master
parent
437cb410e9
commit
da5643853f
|
@ -597,7 +597,7 @@ ssize_t do_replace_loop(const char *needle, bool whole_word_only,
|
||||||
/* Start either at the top or the bottom of the marked region. */
|
/* Start either at the top or the bottom of the marked region. */
|
||||||
if (!ISSET(BACKWARDS_SEARCH)) {
|
if (!ISSET(BACKWARDS_SEARCH)) {
|
||||||
openfile->current = top;
|
openfile->current = top;
|
||||||
openfile->current_x = (top_x == 0 ? 0 : top_x - 1);
|
openfile->current_x = top_x;
|
||||||
} else {
|
} else {
|
||||||
openfile->current = bot;
|
openfile->current = bot;
|
||||||
openfile->current_x = bot_x;
|
openfile->current_x = bot_x;
|
||||||
|
|
Loading…
Reference in New Issue