- 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-d3aeb78583b8master
parent
64fc78c0f1
commit
8a85aa0baa
|
@ -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).
|
||||
|
|
4
search.c
4
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)
|
||||
|
|
Loading…
Reference in New Issue