From 5d25f6397f74a4a2f91d999196b31e1a878c2507 Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Tue, 22 Aug 2017 19:59:01 +0200 Subject: TextEdit: Copy whole line if not having selection. The functionality was already there but hidden behind a bogus return statement. Fixes #10485 --- 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 f15fb71f87..68529ae255 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -3656,9 +3656,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); -- cgit v1.2.3