mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 13:04:58 +00:00
Work around auto-bibitem insertion when separating bibliography environment
Manually delete bibitem insets in the separator line. In the long term, such things should not happen at all. Candidate for 2.3.x.
This commit is contained in:
parent
a09ceda2c4
commit
e57b245d0b
@ -1644,6 +1644,9 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
DocumentClass const & tc = bv->buffer().params().documentClass();
|
||||
lyx::dispatch(FuncRequest(LFUN_LAYOUT, from_ascii("\"") + tc.plainLayout().name()
|
||||
+ from_ascii("\" ignoreautonests")));
|
||||
// FIXME: Bibitem mess!
|
||||
if (cur.prevInset() && cur.prevInset()->lyxCode() == BIBITEM_CODE)
|
||||
lyx::dispatch(FuncRequest(LFUN_CHAR_DELETE_BACKWARD));
|
||||
lyx::dispatch(FuncRequest(LFUN_SEPARATOR_INSERT, "plain"));
|
||||
if (before) {
|
||||
cur.backwardPos();
|
||||
|
Loading…
Reference in New Issue
Block a user