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 5d25f6397f)
This commit is contained in:
Andreas Haas 2017-08-22 19:59:01 +02:00 committed by Rémi Verschelde
parent bec8fd1732
commit f9ad5c3c4f
1 changed files with 0 additions and 3 deletions

View File

@ -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);