summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-07-29 16:47:54 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-07-29 16:47:54 +0300
commitd9c45cc1d143ce806a28502c31e8ec0eace09d97 (patch)
treea0f755c8665c33603f15157e26e1e19f2c123452 /src/ui
parent72e095cf987d6bb2bc2212035a8c5498f3b6d329 (diff)
Text: More word wrapping characters
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/text.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index ad1c37c8..1c728642 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -299,7 +299,9 @@ static iChar nextChar_(const char **chPos, const char *end) {
299int enableHalfPixelGlyphs_Text = iTrue; 299int enableHalfPixelGlyphs_Text = iTrue;
300 300
301iLocalDef iBool isWrapBoundary_(iChar a, iChar b) { 301iLocalDef iBool isWrapBoundary_(iChar a, iChar b) {
302 if (b == '/' || b == '-') return iTrue; 302 if (b == '/' || b == '-' || b == ',' || b == ';' || b == ':') {
303 return iTrue;
304 }
303 return !isSpace_Char(a) && isSpace_Char(b); 305 return !isSpace_Char(a) && isSpace_Char(b);
304} 306}
305 307