X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText3.cpp;h=fef9691f72b7a8a895170841d1575820560dec07;hb=83356ab9;hp=c5cc4283755bc10e54122d72322da52ac4fc5975;hpb=64acc06b919e08001cb8ff8d5b69e0902176fe35;p=lyx.git diff --git a/src/Text3.cpp b/src/Text3.cpp index c5cc428375..fef9691f72 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -249,20 +249,7 @@ static bool doInsertInset(Cursor & cur, Text * text, ci->setButtonLabel(); cur.recordUndo(); - if (cmd.action() == LFUN_INDEX_INSERT) { - docstring ds = subst(text->getStringToIndex(cur), '\n', ' '); - text->insertInset(cur, inset); - if (edit) - inset->edit(cur, true); - // Now put this into inset - Font const f(inherit_font, cur.current_font.language()); - if (!ds.empty()) { - cur.text()->insertStringAsLines(cur, ds, f); - cur.leaveInset(*inset); - } - return true; - } - else if (cmd.action() == LFUN_ARGUMENT_INSERT) { + if (cmd.action() == LFUN_ARGUMENT_INSERT) { bool cotextinsert = false; InsetArgument const * const ia = static_cast(inset); Layout const & lay = cur.paragraph().layout();