* src/text3.C (doDispatch):

- record undo on LFUN_BREAKLINE (bug 3111).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16730 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-01-17 15:40:55 +00:00
parent 976d38f7b7
commit 798af7d8f3

View 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();