]> git.wh0rd.org Git - nano.git/commitdiff
- search.c:do_search(), do_replace_loop() - Fix edit_update call to use CENTER instea...
authorChris Allegretta <chrisa@asty.org>
Sun, 26 Jan 2003 20:02:15 +0000 (20:02 +0000)
committerChris Allegretta <chrisa@asty.org>
Sun, 26 Jan 2003 20:02:15 +0000 (20:02 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1398 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
search.c

index 79a6917c22c01cc7219a004f60d281efea649dcc..85a40ab7c9e374223fa57cc41b1d8c1e9262e87b 100644 (file)
--- 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).
index c6c42a7ea636d2e1bfea67aca1036a4a36378068..a8d4921e91012b3c316f2b04bfbd3b47cf2b0bb1 100644 (file)
--- 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)