The removed code was introduced at [
c668ebf6/lyxgit] to assure that
an inset separator in the last position of a paragraph was getting
removed when hitting backspace with the cursor at the beginning of
the next paragraph. Apparently, it is not needed anymore and can
be removed. This avoids the reported assertion.
case LFUN_CHAR_DELETE_BACKWARD:
if (!cur.selection()) {
if (bv->getIntl().getTransManager().backspace()) {
- bool par_boundary = cur.pos() == 0;
// Par boundary, full-screen update
- if (par_boundary)
+ if (cur.pos() == 0)
singleParUpdate = false;
needsUpdate |= backspace(cur);
cur.resetAnchor();
- if (par_boundary && cur.pos() > 0
- && cur.paragraph().isEnvSeparator(cur.pos() - 1)) {
- needsUpdate |= backspace(cur);
- cur.resetAnchor();
- }
}
} else {
cutSelection(cur, true, false);