From: Richard Kimberly Heck Date: Wed, 2 May 2018 23:57:09 +0000 (-0400) Subject: Fix indentation. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3503 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e91245362f9f59e9662a515a1cf34959a5e24db5;p=lyx.git Fix indentation. --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 83d197ad5b..572e4bdd92 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -290,15 +290,15 @@ static bool doInsertInset(Cursor & cur, Text * text, bool gotsel = false; if (cur.selection()) { if (cmd.action() == LFUN_INDEX_INSERT) - copySelectionToTemp(cur); - else - cutSelectionToTemp(cur, false, pastesel); - cur.clearSelection(); - gotsel = true; - } else if (cmd.action() == LFUN_INDEX_INSERT) { - gotsel = text->selectWordWhenUnderCursor(cur, WHOLE_WORD); copySelectionToTemp(cur); - cur.clearSelection(); + else + cutSelectionToTemp(cur, false, pastesel); + cur.clearSelection(); + gotsel = true; + } else if (cmd.action() == LFUN_INDEX_INSERT) { + gotsel = text->selectWordWhenUnderCursor(cur, WHOLE_WORD); + copySelectionToTemp(cur); + cur.clearSelection(); } text->insertInset(cur, inset);