]> git.lyx.org Git - lyx.git/commitdiff
Fix indentation.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Wed, 2 May 2018 23:57:09 +0000 (19:57 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Wed, 2 May 2018 23:57:37 +0000 (19:57 -0400)
src/Text3.cpp

index 83d197ad5be01ca41f5a7cf9872e9633e32d47d8..572e4bdd9231292c912e9005283ac85927ca38f7 100644 (file)
@@ -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);