"Bo Peng" <[EMAIL PROTECTED]> writes: | > Just as a test... load a document move the cursor save. | > Exit lyx. Start lyx. Load a different document. Load the first doc. | > Where is the cursor placed now? | | It will move to the position when the first file was closed. My test | goes well except that "lyx file.lyx" does not scroll as expected.
The comment above aimed at the 'use par.id()' for lastpos situation. pit is a lot more stable. | | > Doesn't this almost double the size of lastfiles.C? | > (I am just trying to prove that code complexity is not reduced it IMNO | > increases a lot.) | | I added about 50 lines. Now the code is 155 lines. And of this some ~40 lines is copyrigh and headers. You have doubled the "code size" of the file. | A separate | fileposition.C will be this long as well, and we need to change the | lyx().lastfile() interface. No. We need to have the "last position" feature in addition, not mixed with lastfile. -- Lgb