Explorar o código

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)
Andreas Haas %!s(int64=8) %!d(string=hai) anos
pai
achega
f9ad5c3c4f
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      scene/gui/text_edit.cpp

+ 0 - 3
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);