summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-12-19 14:40:08 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-12-19 14:40:08 +0200
commit59161a56f75d539d024788181321a32f3ec58202 (patch)
tree0de3536df1688c2dd04c52642da96a74ac991ef9
parent712c04801f3c6a7da76ff583e97207c768bf759c (diff)
Text: Line wrapping tweak
-rw-r--r--src/ui/text.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 6b42610f..c62a4541 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -618,6 +618,10 @@ iLocalDef iBool isWrapBoundary_(iChar prevC, iChar c) {
618 can wrap text like foo/bar/baz-abc-def.xyz at any puncation boundaries, 618 can wrap text like foo/bar/baz-abc-def.xyz at any puncation boundaries,
619 without wrapping on other punctuation used for expressive purposes like 619 without wrapping on other punctuation used for expressive purposes like
620 emoticons :-) */ 620 emoticons :-) */
621 if (c == '.' && (prevC == '(' || prevC == '[' || prevC == '.')) {
622 /* Start of a [...], perhaps? */
623 return iFalse;
624 }
621 if (isSpace_Char(prevC)) { 625 if (isSpace_Char(prevC)) {
622 return iFalse; 626 return iFalse;
623 } 627 }