aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
authorAndreas Haas2017-08-22 19:59:01 +0200
committerAndreas Haas2017-08-22 20:05:52 +0200
commit5d25f6397f74a4a2f91d999196b31e1a878c2507 (patch)
tree80ad964526b7f818cfe7cf9ad43e3160a363bf09 /scene/gui/text_edit.cpp
parent294e912a843cde241f9abf619f5d40df9ef6ef9f (diff)
downloadgodot-5d25f6397f74a4a2f91d999196b31e1a878c2507.tar.gz
godot-5d25f6397f74a4a2f91d999196b31e1a878c2507.tar.zst
godot-5d25f6397f74a4a2f91d999196b31e1a878c2507.zip
TextEdit: Copy whole line if not having selection.
The functionality was already there but hidden behind a bogus return statement. Fixes #10485
Diffstat (limited to 'scene/gui/text_edit.cpp')
-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 f15fb71f8..68529ae25 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);