From 1c3b6807dbb1074fb30709cfb50f01c3096f1900 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Thu, 14 Jan 2016 20:57:52 +0100 Subject: [PATCH] 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. --- src/Text3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text3.cpp b/src/Text3.cpp index 0933000838..1fa3c06f48 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()); -- 2.39.2