TextEdit: Copy whole line if not having selection.

The functionality was already there but hidden behind a bogus return statement.
Fixes #10485
This commit is contained in:
Andreas Haas 2017-08-22 19:59:01 +02:00
parent 294e912a84
commit 5d25f6397f
No known key found for this signature in database
GPG key ID: B5FFAE1B65FBD2E1

View file

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