From 4cc3fbeaffcffe5fe834b2b2afda18661836f769 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 --- 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 df272c97a53..59f9ee4a739 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