mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
Fix multiline monospace pre blocks editing.
Now we pass current flags and lnkIndex to the NewlineBlock, so that we don't get one multiline pre block split to separate line blocks.
This commit is contained in:
@@ -182,7 +182,7 @@ public:
|
||||
emoji = 0;
|
||||
lastSkipped = true;
|
||||
} else if (newline) {
|
||||
_t->_blocks.push_back(new NewlineBlock(_t->_st->font, _t->_text, blockStart, len));
|
||||
_t->_blocks.push_back(new NewlineBlock(_t->_st->font, _t->_text, blockStart, len, flags, lnkIndex));
|
||||
} else {
|
||||
_t->_blocks.push_back(new TextBlock(_t->_st->font, _t->_text, _t->_minResizeWidth, blockStart, len, flags, lnkIndex));
|
||||
}
|
||||
|
Reference in New Issue
Block a user