mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
Fix bug #9602.
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.
This commit is contained in:
parent
580947bfe0
commit
6bd9f8856f
@ -1071,17 +1071,11 @@ 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 (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);
|
||||
|
Loading…
Reference in New Issue
Block a user