Bo Peng wrote:
I just submitted the following patch.
It is wrong not to save the whole cursor stack as lastFilePos, and it
is more wrong to save top (innermost) level pit and pos. As a result,
if you quit lyx with cursor in an inset, lastFilePos will save pit/pos
within this inset, and will restore the cursor to a wrong position.
The attached patch fixes this by saving bottom level pit and pos.
Hum, why don't you save the paragraph id instead? I am sure sure of that
but I think it is unique and persistent across restart.
Abdel.