Browse Source

TextEdit: Copy whole line if not having selection.

The functionality was already there but hidden behind a bogus return statement.
Fixes #10485
Andreas Haas 8 years ago
parent
commit
5d25f6397f
1 changed files with 0 additions and 3 deletions
  1. 0 3
      scene/gui/text_edit.cpp

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