> -     // save current cursor position
> -     
LyX::ref().session().lastFilePos().save(FileName(lyx_view_->buffer()->fileName()),
> -             boost::tie(view()->cursor().pit(), view()->cursor().pos()) );
>       // goto bookmark to update bookmark pit.
>       for (size_t i = 0; i < LyX::ref().session().bookmarks().size(); ++i)
>               gotoBookmark(i+1, false, false);
>
This looks unrelated to what you describe. Don't we save the last pos
any more?

I removed this because I notice that setBuffer will be called to close
the buffer, and this lastFilePos().save will be called there.

Cheers,
Bo

Reply via email to