Dear list,

I am trying to figure out why the cursor does not go to saved cursor
position when lyx starts like 'lyx file.lyx'. For example, if the
saved file position (pit) is 50, I notice that

1. 'lyx file.lyx', .lyx/session is loaded, setCursor is called. in
cursor.C, line 260,  the DocIterator part of the cursor is actually
set to the correct pid 50.

2. lyx starts, with message line saying paragraph 0.

3. click scroll bar, message line says paragraph 50 but lyx does not
jump to pit 50. Note that I did not click the document, only scroll
bar.

So, what is the status of lcursor now? 0 or 50? Who is responsible for
actually moving the cursor? I guess I need to manually refresh
BufferView after setCursor is called, in loadLyXFile().

Cheers,
Bo

Reply via email to