mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 18:21:42 -05:00
Version 0.10.7: fixed entities moving when replacing emoji.
This commit is contained in:
parent
75c12dda31
commit
c4a4e99f6b
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ inline void appendPartToResult(QString &result, const QChar *start, const QChar
|
||||||
if (entity.offset() >= from - start) {
|
if (entity.offset() >= from - start) {
|
||||||
entity.extendToLeft(from - start - result.size());
|
entity.extendToLeft(from - start - result.size());
|
||||||
}
|
}
|
||||||
if (entity.offset() + entity.length() < to - start) {
|
if (entity.offset() + entity.length() <= to - start) {
|
||||||
entity.shrinkFromRight(from - start - result.size());
|
entity.shrinkFromRight(from - start - result.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue