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:
parent
bec8fd1732
commit
f9ad5c3c4f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue