commit 1c3b6807dbb1074fb30709cfb50f01c3096f1900
Author: Enrico Forestieri <for...@lyx.org>
Date:   Thu Jan 14 20:57:52 2016 +0100

    Insert a plain separator instead of a parbreak one.
    
    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.

diff --git a/src/Text3.cpp b/src/Text3.cpp
index 0933000..1fa3c06 100644
--- a/src/Text3.cpp
+++ b/src/Text3.cpp
@@ -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());

Reply via email to