From 27901b3a06e88b991ae2e3e054dc3b75734d004b Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 30 Dec 2017 11:54:37 +0100 Subject: [PATCH] Fix environment-split previous problem spotted by Joel Special case: append from the separator paragraph. --- src/Text3.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Text3.cpp b/src/Text3.cpp index 812f280a29..8d37e790b3 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1537,6 +1537,8 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) cur.top().setPitPos(cur.pit(), 0); if (before || cur.pos() > 0) lyx::dispatch(FuncRequest(LFUN_PARAGRAPH_BREAK)); + else if (previous && cur.nextInset() && cur.nextInset()->lyxCode() == SEPARATOR_CODE) + lyx::dispatch(FuncRequest(LFUN_PARAGRAPH_BREAK, "inverse ignoresep")); if (outer) { while (cur.paragraph().params().depth() > split_depth) lyx::dispatch(FuncRequest(LFUN_DEPTH_DECREMENT));