mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop into dev
This commit is contained in:
commit
5663841742
1 changed files with 8 additions and 1 deletions
|
@ -654,7 +654,14 @@ void FlatTextarea::onDocumentContentsChange(int position, int charsRemoved, int
|
||||||
}
|
}
|
||||||
if (charsAdded <= 0) return;
|
if (charsAdded <= 0) return;
|
||||||
|
|
||||||
_insertions.push_back(Insertion(position, charsAdded));
|
// _insertions.push_back(Insertion(position, charsAdded));
|
||||||
|
_replacingEmojis = true;
|
||||||
|
QSizeF s = document()->pageSize();
|
||||||
|
processDocumentContentsChange(position, charsAdded);
|
||||||
|
if (document()->pageSize() != s) {
|
||||||
|
document()->setPageSize(s);
|
||||||
|
}
|
||||||
|
_replacingEmojis = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FlatTextarea::onDocumentContentsChanged() {
|
void FlatTextarea::onDocumentContentsChanged() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue