mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
* 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:
parent
976d38f7b7
commit
798af7d8f3
@ -554,6 +554,8 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
case LFUN_BREAK_LINE: {
|
case LFUN_BREAK_LINE: {
|
||||||
// Not allowed by LaTeX (labels or empty par)
|
// Not allowed by LaTeX (labels or empty par)
|
||||||
if (cur.pos() > cur.paragraph().beginOfBody()) {
|
if (cur.pos() > cur.paragraph().beginOfBody()) {
|
||||||
|
if (!cur.selection())
|
||||||
|
recordUndo(cur);
|
||||||
cap::replaceSelection(cur);
|
cap::replaceSelection(cur);
|
||||||
cur.insert(new InsetNewline);
|
cur.insert(new InsetNewline);
|
||||||
cur.posRight();
|
cur.posRight();
|
||||||
|
Loading…
Reference in New Issue
Block a user