return start_ == -1 || (start_ <= pos && pos <= end_);
}
+
bool Bidi::same_direction() const
{
return same_direction_;
return;
}
- if (par.ownerCode() == ERT_CODE || par.ownerCode() == LISTINGS_CODE) {
+ if (par.inInset().forceLTR()) {
start_ = -1;
return;
}
pos_type const pos =
(is_space && lpos + 1 <= end_ &&
!par.isLineSeparator(lpos + 1) &&
+ !par.isEnvSeparator(lpos + 1) &&
!par.isNewline(lpos + 1))
? lpos + 1 : lpos;