mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-01 23:00:58 +00:00
Version 0.10.7: fixed entities moving when replacing emoji.
This commit is contained in:
parent
75c12dda31
commit
c4a4e99f6b
@ -173,7 +173,7 @@ inline void appendPartToResult(QString &result, const QChar *start, const QChar
|
||||
if (entity.offset() >= from - start) {
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user