]> git.lyx.org Git - lyx.git/blobdiff - src/text3.C
* output_plaintext.C: cosmetics in comment: line length cannot be < 0
[lyx.git] / src / text3.C
index 2e4f09c84e17c13c698aeddd6b885c3eb8283e55..86c69d0646be73b59307edcc411b1dd33e30883a 100644 (file)
@@ -554,6 +554,8 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
        case LFUN_BREAK_LINE: {
                // Not allowed by LaTeX (labels or empty par)
                if (cur.pos() > cur.paragraph().beginOfBody()) {
+                       if (!cur.selection())
+                               recordUndo(cur);
                        cap::replaceSelection(cur);
                        cur.insert(new InsetNewline);
                        cur.posRight();