bool Cursor::inCoordCache() const
{
+ // the root inset is not in cache, but we do not need it.
+ if (depth() == 1)
+ return true;
CoordCache::Insets const & icache = bv_->coordCache().getInsets();
- for (size_t i = 0 ; i < depth() ; ++i)
+ for (size_t i = 1 ; i < depth() ; ++i)
if (!icache.has(&(*this)[i].inset()))
return false;
return true;
// Make sure that cur gets back whatever happened to dummy (Lgb)
operator=(dummy);
}
+ if (inTexted() && pos() && paragraph().isEnvSeparator(pos() - 1))
+ posBackward();
} else {
// if there is a selection, we stay out of any inset,
// and just jump to the right position: