From 68b7f9d87a06defc484daee04d8a85e016ef8279 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Thu, 17 Mar 2016 19:37:19 +0000 Subject: [PATCH] Fixed highliting with shift and mouse (cherry picked from commit 4cc3fbeaffcffe5fe834b2b2afda18661836f769) --- scene/gui/text_edit.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 69d4c13d66..be3792ad7e 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -644,10 +644,7 @@ void TextEdit::_notification(int p_what) { Point2 cursor_pos; // get the highlighted words - String highlighted_text; - if (is_selection_active()) { - highlighted_text = get_selection_text(); - } + String highlighted_text = get_selection_text(); for (int i=0;i