From f9ad5c3c4f814845d36a9f0a3a3cd1d7145b181f Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Tue, 22 Aug 2017 19:59:01 +0200 Subject: [PATCH] TextEdit: Copy whole line if not having selection. The functionality was already there but hidden behind a bogus return statement. Fixes #10485 (cherry picked from commit 5d25f6397f74a4a2f91d999196b31e1a878c2507) --- scene/gui/text_edit.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 92cb71a089d..c317af4eda2 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -3372,9 +3372,6 @@ void TextEdit::cut() { void TextEdit::copy() { - if (!selection.active) - return; - if (!selection.active) { String clipboard = _base_get_text(cursor.line, 0, cursor.line, text[cursor.line].length()); OS::get_singleton()->set_clipboard(clipboard);