From 8a85aa0baacd418cc2714fd06c1a0f484f71355c Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Sun, 26 Jan 2003 20:02:15 +0000 Subject: [PATCH] - 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) git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1398 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 +++ search.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 79a6917c..85a40ab7 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 c6c42a7e..a8d4921e 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) -- 2.39.5