When breaking paragraph in an empty top-level paragraph, nothing
happens on screen but yet there is an undo step because the layout is
reset to what it already was.
Avoid this case.
Fixes bug #10089.
(cherry picked from commit
2ad52918da1d0f375bf2831df4c51f6afa7ea448)
else {
docstring const & lay = cur.paragraph().usePlainLayout()
? tclass.plainLayoutName() : tclass.defaultLayoutName();
- setLayout(cur, lay);
+ if (lay != layout.name())
+ setLayout(cur, lay);
}
return;
}
- Fix the minimum size of the citation dialog on first time (bug 10019).
+- When Enter does nothing (empty paragraph), do not record undo (bug 10089).
+
* INTERNALS