]> git.lyx.org Git - features.git/commitdiff
Insert a plain separator instead of a parbreak one.
authorEnrico Forestieri <forenr@lyx.org>
Thu, 14 Jan 2016 19:57:52 +0000 (20:57 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 14 Jan 2016 19:57:52 +0000 (20:57 +0100)
When hitting Enter after a non-standard layout a plain separator is
now inserted. This seems to be preferred and more in line with what
is obtained with the "Alt+M P" shortcut.

src/Text3.cpp

index 093300083865bcf7e58fe7d8590069a06e263bf7..1fa3c06f4894389dd724f22ffc420b25eaca658e 100644 (file)
@@ -1117,11 +1117,11 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                                docstring const layout = par.layout().name();
                                DocumentClass const & tc = bv->buffer().params().documentClass();
                                lyx::dispatch(FuncRequest(LFUN_LAYOUT, tc.plainLayout().name()));
-                               lyx::dispatch(FuncRequest(LFUN_SEPARATOR_INSERT, "parbreak"));
+                               lyx::dispatch(FuncRequest(LFUN_SEPARATOR_INSERT, "plain"));
                                lyx::dispatch(FuncRequest(LFUN_PARAGRAPH_BREAK, "inverse"));
                                lyx::dispatch(FuncRequest(LFUN_LAYOUT, layout));
                        } else {
-                               lyx::dispatch(FuncRequest(LFUN_SEPARATOR_INSERT, "parbreak"));
+                               lyx::dispatch(FuncRequest(LFUN_SEPARATOR_INSERT, "plain"));
                                breakParagraph(cur);
                        }
                        Font const f(inherit_font, cur.current_font.language());