Sorry, I was wrong. That code is still needed.
Proper fix for #9602 is on its way.
This commit is contained in:
Enrico Forestieri 2015-06-08 00:38:10 +02:00
parent 6bd9f8856f
commit 541984e43e

View File

@ -1071,11 +1071,17 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
case LFUN_CHAR_DELETE_BACKWARD: case LFUN_CHAR_DELETE_BACKWARD:
if (!cur.selection()) { if (!cur.selection()) {
if (bv->getIntl().getTransManager().backspace()) { if (bv->getIntl().getTransManager().backspace()) {
bool par_boundary = cur.pos() == 0;
// Par boundary, full-screen update // Par boundary, full-screen update
if (cur.pos() == 0) if (par_boundary)
singleParUpdate = false; singleParUpdate = false;
needsUpdate |= backspace(cur); needsUpdate |= backspace(cur);
cur.resetAnchor(); cur.resetAnchor();
if (par_boundary && cur.pos() > 0
&& cur.paragraph().isEnvSeparator(cur.pos() - 1)) {
needsUpdate |= backspace(cur);
cur.resetAnchor();
}
} }
} else { } else {
cutSelection(cur, true, false); cutSelection(cur, true, false);