* src/text3.C (doDispatch):

- record undo on LFUN_BREAKLINE (bug 3111).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16731 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-01-17 15:47:27 +00:00
parent db71db23ce
commit f18c730b36
3 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-01-17 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* text3.C (doDispatch): recordUndo on LFUN_BREAKLINE (bug 3111).
2007-01-17 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* BufferView.C (mouseSetCursor): if the cursor was in an empty

View File

@ -530,6 +530,8 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
case LFUN_BREAKLINE: {
// Not allowed by LaTeX (labels or empty par)
if (cur.pos() > cur.paragraph().beginOfBody()) {
if (!cur.selection())
recordUndo(cur);
lyx::cap::replaceSelection(cur);
cur.insert(new InsetNewline);
cur.posRight();

View File

@ -182,6 +182,8 @@ What's new
(bug 3055). This also fixes problems with older LyX files
(bug 3066) [qt only].
- fix undo when inserting a line break (bug 3111).
* Build/installation:
- Allow autoconf 2.60 and 2.61 for building.