]> git.lyx.org Git - features.git/commitdiff
Don't merge next paragraph when removing a separator inset
authorEnrico Forestieri <forenr@lyx.org>
Sat, 16 Jan 2016 15:44:26 +0000 (16:44 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 16 Jan 2016 15:44:26 +0000 (16:44 +0100)
src/Text3.cpp

index 1fa3c06f4894389dd724f22ffc420b25eaca658e..fbcd9b7206a2dd4f0c51810fcabce05af22dc925 100644 (file)
@@ -1048,22 +1048,11 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
 
        case LFUN_CHAR_DELETE_FORWARD:
                if (!cur.selection()) {
-                       bool was_separator = cur.paragraph().isEnvSeparator(cur.pos());
                        if (cur.pos() == cur.paragraph().size())
                                // Par boundary, force full-screen update
                                singleParUpdate = false;
                        needsUpdate |= erase(cur);
                        cur.resetAnchor();
-                       if (was_separator && cur.pos() == cur.paragraph().size()
-                           && (!cur.paragraph().layout().isEnvironment()
-                               || cur.paragraph().size() > 0)) {
-                               // Force full-screen update
-                               singleParUpdate = false;
-                               needsUpdate |= erase(cur);
-                               cur.resetAnchor();
-                       }
-                       // It is possible to make it a lot faster still
-                       // just comment out the line below...
                } else {
                        cutSelection(cur, true, false);
                        singleParUpdate = false;