Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
InputField: only soften line breaks inside format tags
In `InputField::PrepareForInsert`, avoid replacing all line break characters with `kSoftLine` (aka `QChar::LineSeparator`) because that makes the selection behavior inconsistent (different for typed text and restored text, e.g., from a draft). Instead, only soften line breaks inside formatting tags. Should fix telegramdesktop/tdesktop#28805
- Loading branch information