diff --git a/ChangeLog b/ChangeLog index 6ec79fbb..58910674 100644 --- a/ChangeLog +++ b/ChangeLog @@ -191,6 +191,8 @@ CVS code - work properly when we've replaced one or more instances of a string in copy and haven't yet updated current->data to match copy. (DLR) + - Simplify the display_string() call that we use to get the word + that we're going to highlight. (DLR) - utils.c: num_of_digits() - Use a size_t instead of an int, and rename to digits(). (DLR) diff --git a/src/search.c b/src/search.c index e739e997..c032f834 100644 --- a/src/search.c +++ b/src/search.c @@ -754,8 +754,7 @@ ssize_t do_replace_loop(const char *needle, const filestruct char *exp_word; size_t xpt = xplustabs(); - exp_word = display_string(current->data, xpt, - strnlenpt(current->data, match_len + current_x) - xpt, + exp_word = display_string(current->data, xpt, match_len, FALSE); curs_set(0);