summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2017-08-22 19:59:01 +0200
committerAndreas Haas <liu.gam3@gmail.com>2017-08-22 20:05:52 +0200
commit5d25f6397f74a4a2f91d999196b31e1a878c2507 (patch)
tree80ad964526b7f818cfe7cf9ad43e3160a363bf09
parent294e912a843cde241f9abf619f5d40df9ef6ef9f (diff)
TextEdit: Copy whole line if not having selection.
The functionality was already there but hidden behind a bogus return statement. Fixes #10485
-rw-r--r--scene/gui/text_edit.cpp3
1 files changed, 0 insertions, 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);