diff --git a/ChangeLog b/ChangeLog index 79a6917c22c01cc7219a004f60d281efea649dcc..85a40ab7c9e374223fa57cc41b1d8c1e9262e87b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -33,6 +33,9 @@ CVS Code - window_init() - Fix leaking *WINDOWs (no pun intended) (David Benbennick). - search.c: + do_search(), do_replace_loop() + - Fix edit_update call to use CENTER instead of current_x + (related to David Benbennick's fixes for spelling). do_replace_loop() - Fix various bugs having to do with replace string length and positioning (David Benbennick). diff --git a/search.c b/search.c index c6c42a7ea636d2e1bfea67aca1036a4a36378068..a8d4921e91012b3c316f2b04bfbd3b47cf2b0bb1 100644 --- a/search.c +++ b/search.c @@ -405,7 +405,7 @@ int do_search(void) statusbar(_("This is the only occurrence")); else if (current->lineno <= edittop->lineno || current->lineno >= editbot->lineno) - edit_update(current, current_x); + edit_update(current, CENTER); search_abort(); @@ -575,7 +575,7 @@ int do_replace_loop(const char *prevanswer, const filestruct *begin, if (current->lineno <= edittop->lineno || current->lineno >= editbot->lineno) - edit_update(current, current_x); + edit_update(current, CENTER); /* No more matches. Done! */ if (fileptr == NULL)