Hi JMarc, All, since I haven't got any reply - are you going to put the patch to go to the next/former find position after a replace into lyx-1_0_x or not ? ( I appended it once more. ) Please tell me what you are going to do, since I will check it in into the klyx repository depending on the lyx behaviour. Greetings, Jochen ----------------------------------------------------------------------- Jochen K"upper Heinrich-Heine-Universit"at D"usseldorf [EMAIL PROTECTED] Institut f"ur Physikalische Chemie I Universit"atsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681 40225 D"usseldorf fax ++49-211-8115195 Germany http://www-public.rz.uni-duesseldorf.de/~jochen -----------------------------------------------------------------------
Index: src/lyxfr1.C =================================================================== RCS file: /usr/local/lyxsrc/cvsroot/lyx-1_0_x/src/lyxfr1.C,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 lyxfr1.C --- lyxfr1.C 1998/10/26 22:18:29 1.1.1.1 +++ lyxfr1.C 1999/01/11 15:44:12 @@ -163,6 +163,9 @@ current_view->currentBuffer()->text-> SetSelectionOverString(replacestring.c_str()); current_view->currentBuffer()->update(1); + + // jump to next match: + SearchCB( searchForward ); } @@ -170,6 +173,9 @@ { LyXText *ltCur; + // store search direction + searchForward = fForward; + if (!current_view->getScreen()) return; Index: src/lyxfr1.h =================================================================== RCS file: /usr/local/lyxsrc/cvsroot/lyx-1_0_x/src/lyxfr1.h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 lyxfr1.h --- lyxfr1.h 1998/10/26 22:18:29 1.1.1.1 +++ lyxfr1.h 1999/01/11 15:44:12 @@ -34,6 +34,9 @@ /// Set by IsSearchStringInText: int iLenSelected; + /// Direction we are searching: + bool searchForward; + /// bool SearchForward(LyXText *lt); ///