From e91245362f9f59e9662a515a1cf34959a5e24db5 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Wed, 2 May 2018 19:57:09 -0400 Subject: [PATCH] Fix indentation. --- src/Text3.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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);