]> git.lyx.org Git - features.git/commitdiff
Fix environment-split previous problem spotted by Joel
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 30 Dec 2017 10:54:37 +0000 (11:54 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 30 Dec 2017 10:54:37 +0000 (11:54 +0100)
Special case: append from the separator paragraph.

src/Text3.cpp

index 812f280a2914f5969846b1244d5ac1df6058e80e..8d37e790b3ff6c8594675957e2e7757f255a1a9a 100644 (file)
@@ -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));