diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-02 08:47:05 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-02 08:47:05 +0300 |
commit | 07489bf73f99d7accae4313a8c85a3b94e31a180 (patch) | |
tree | 702e69d8f0a581026e857457780b8326bb095f10 /src/ui | |
parent | 3fdf121b98d2770ee136ee7e6a03de4384c23eb2 (diff) |
Text: Skip space at word wrap position
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/text.c b/src/ui/text.c index cf7f5620..d08573ca 100644 --- a/src/ui/text.c +++ b/src/ui/text.c | |||
@@ -1379,7 +1379,7 @@ iInt2 advanceRange_Text(int fontId, iRangecc text) { | |||
1379 | } | 1379 | } |
1380 | 1380 | ||
1381 | static iBool cbAdvanceOneLine_(iWrapText *d, iRangecc range, int advance) { | 1381 | static iBool cbAdvanceOneLine_(iWrapText *d, iRangecc range, int advance) { |
1382 | *((const char **) d->context) = range.end; | 1382 | *((const char **) d->context) = iMin(skipSpace_CStr(range.end), d->text.end); |
1383 | return iFalse; /* just one line */ | 1383 | return iFalse; /* just one line */ |
1384 | } | 1384 | } |
1385 | 1385 | ||