nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 8a85aa0baacd418cc2714fd06c1a0f484f71355c
parent 64fc78c0f1836ee666a2511fd9c817900e8b5320
Author: Chris Allegretta <chrisa@asty.org>
Date:   Sun, 26 Jan 2003 20:02:15 +0000

- 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

Diffstat:
MChangeLog | 3+++
Msearch.c | 4++--
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git 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 @@ -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)