mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Revert 6bd9f885
Sorry, I was wrong. That code is still needed. Proper fix for #9602 is on its way.
This commit is contained in:
parent
6bd9f8856f
commit
541984e43e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user