mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixed text copying if a single word is selected
This commit is contained in:
parent
bcf0ebd8ef
commit
d0f1ea8502
|
@ -419,8 +419,12 @@ void MessageLayoutContainer::addSelectionText(QString &str, int from, int to)
|
|||
|
||||
if (first) {
|
||||
if (index + c > from) {
|
||||
ele->addCopyTextToString(str, from - index, to - from);
|
||||
ele->addCopyTextToString(str, from - index, to - index);
|
||||
first = false;
|
||||
|
||||
if (index + c > to) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (index + c > to) {
|
||||
|
|
Loading…
Reference in a new issue