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
1 changed files with 0 additions and 3 deletions
|
@ -3656,9 +3656,6 @@ void TextEdit::cut() {
|
||||||
|
|
||||||
void TextEdit::copy() {
|
void TextEdit::copy() {
|
||||||
|
|
||||||
if (!selection.active)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (!selection.active) {
|
if (!selection.active) {
|
||||||
String clipboard = _base_get_text(cursor.line, 0, cursor.line, text[cursor.line].length());
|
String clipboard = _base_get_text(cursor.line, 0, cursor.line, text[cursor.line].length());
|
||||||
OS::get_singleton()->set_clipboard(clipboard);
|
OS::get_singleton()->set_clipboard(clipboard);
|
||||||
|
|
Loading…
Reference in a new issue