mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Version 0.10.7: fixed entities moving when replacing emoji.
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user