From: Enrico Forestieri Date: Sun, 7 Jun 2015 22:38:10 +0000 (+0200) Subject: Revert 6bd9f885 X-Git-Tag: 2.2.0alpha1~554 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=541984e43e22d9ace786404916495d22b913aa33;p=features.git Revert 6bd9f885 Sorry, I was wrong. That code is still needed. Proper fix for #9602 is on its way. --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 9bd95cc05a..3a93ed23d5 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1071,11 +1071,17 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) 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 (cur.pos() == 0) + if (par_boundary) 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);