diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-04-20 00:05:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-20 00:05:41 -0500 |
| commit | 445d47c5b521fba499ab885868d7b78766d5f50b (patch) | |
| tree | 45440ca9a34024701d982fc14bbdb1f59da4ca77 | |
| parent | e517a365d59a46f213e5f053404ecb1904f63ab6 (diff) | |
| parent | 9a20143e222cab8ddce8d0f8e47421e4805b285e (diff) | |
Merge pull request #527 from AttorneyOnline/fix/523
Fix ~~, ~> and <> breaking tick pos
| -rw-r--r-- | src/courtroom.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index aafc16d0..98cc5b28 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -3363,21 +3363,8 @@ void Courtroom::chat_tick() // Alignment characters if (tick_pos < 2) { - if (f_rest.startsWith("~~")) { - tick_pos = f_rest.indexOf("~~"); - f_rest.remove(tick_pos, 2); + if (f_rest.startsWith("~~") || f_rest.startsWith("~>") || f_rest.startsWith("<>")) tick_pos += 2; - } - else if (f_rest.startsWith("~>")) { - tick_pos = f_rest.indexOf("~>"); - f_rest.remove(tick_pos, 2); - tick_pos += 2; - } - else if (f_rest.startsWith("<>")) { - tick_pos = f_rest.indexOf("<>"); - f_rest.remove(tick_pos, 2); - tick_pos += 2; - } } f_rest.remove(0, tick_pos); QTextBoundaryFinder tbf(QTextBoundaryFinder::Grapheme, f_rest); |
