Commit 9744711
committed
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#288051 parent 5fbb38c commit 9744711
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
1076 | | - | |
1077 | 1072 | | |
1078 | 1073 | | |
1079 | 1074 | | |
| |||
1098 | 1093 | | |
1099 | 1094 | | |
1100 | 1095 | | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
1101 | 1103 | | |
1102 | 1104 | | |
1103 | 1105 | | |
| |||
0 commit comments