mirror of https://github.com/godotengine/godot
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:
parent
294e912a84
commit
5d25f6397f
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue