summaryrefslogtreecommitdiff
path: root/src/ui/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/text.c')
-rw-r--r--src/ui/text.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 9532e35a..aacc8d3d 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -923,6 +923,13 @@ static iRect run_Font_(iFont *d, const iRunArgs *args) {
923 } 923 }
924 /* TODO: Check out if `uc_wordbreak_property()` from libunistring can be used here. */ 924 /* TODO: Check out if `uc_wordbreak_property()` from libunistring can be used here. */
925 if (ch == '\n') { 925 if (ch == '\n') {
926 if (args->xposLimit > 0 && ~mode & noWrapFlag_RunMode) {
927 /* Stop the line here, this is a hard warp. */
928 if (args->continueFrom_out) {
929 *args->continueFrom_out = chPos;
930 }
931 break;
932 }
926 xpos = xposExtend = orig.x; 933 xpos = xposExtend = orig.x;
927 ypos += d->height; 934 ypos += d->height;
928 prevCh = ch; 935 prevCh = ch;