// That is to say, if a cursor is in a nested inset, it will be
// restore to the left of the top level inset.
LastFilePosSection::FilePos fp;
+ fp.file = buffer_.fileName();
fp.pit = d->cursor_.bottom().pit();
fp.pos = d->cursor_.bottom().pos();
- theSession().lastFilePos().save(buffer_.fileName(), fp);
+ theSession().lastFilePos().save(fp);
if (d->last_inset_)
d->last_inset_->setMouseHover(this, false);
}
-void BufferView::setCursorLanguage(std::string const & code)
-{
- Language const * lang = languages.getFromCode(code, buffer_.getLanguages());
- if (lang) {
- d->cursor_.current_font.setLanguage(lang);
- d->cursor_.real_current_font.setLanguage(lang);
- } else
- LYXERR0("setCursorLanguage: unknown language code " << code);
-}
-
-
bool BufferView::singleParUpdate()
{
Text & buftext = buffer_.text();
// however, the different coordinates of insets and paragraphs
// needs to be updated.
LYXERR(Debug::PAINTING, "Strategy: NoScreenUpdate");
- pi.full_repaint = false;
if (pain.isNull()) {
pi.full_repaint = true;
tm.draw(pi, 0, y);