01/07/2013 18:49, Hashini Senaratne:
When a LyX document opens, the cursor appears at the point where it was when the document was closed after the final edition. How this is handled (from where)? Is it something involved with BufferView.cpp?
I am not sure what you have in mind, but I think that you should not worry about that. The right place for setting the row offset (or whatever name you give to it) is when the screen is about to get drawn (BufferView::draw). It is not necessary to track all the places where the cursor is set IMO.
JMarc