diff options
author | crupest <crupest@outlook.com> | 2021-11-15 17:19:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-11-15 17:19:09 +0800 |
commit | e78a49111f454a8cdee180f5089e138d94416597 (patch) | |
tree | 94fe4fbfdebc54c37941a17e32c0f04799108d66 /src/ui/controls | |
parent | 4ac58d91bac0cebe2bdf5e11b9d63b9c41e6b39e (diff) | |
download | cru-e78a49111f454a8cdee180f5089e138d94416597.tar.gz cru-e78a49111f454a8cdee180f5089e138d94416597.tar.bz2 cru-e78a49111f454a8cdee180f5089e138d94416597.zip |
...
Diffstat (limited to 'src/ui/controls')
-rw-r--r-- | src/ui/controls/TextHostControlService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/controls/TextHostControlService.cpp b/src/ui/controls/TextHostControlService.cpp index cbbfde58..e3d25f14 100644 --- a/src/ui/controls/TextHostControlService.cpp +++ b/src/ui/controls/TextHostControlService.cpp @@ -479,7 +479,7 @@ void TextHostControlService::SetUpShortcuts() { auto text = this->GetTextView(); auto caret = this->GetCaretPosition(); auto new_position = pattern.Move(this, text, caret); - this->SetSelection(caret); + this->SetSelection(new_position); return true; }); |