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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 91ff137a..977cac9c 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -1871,6 +1871,10 @@ iInt2 tryAdvance_Text(int fontId, iRangecc text, int width, const char **endPos)
1871} 1871}
1872 1872
1873iInt2 tryAdvanceNoWrap_Text(int fontId, iRangecc text, int width, const char **endPos) { 1873iInt2 tryAdvanceNoWrap_Text(int fontId, iRangecc text, int width, const char **endPos) {
1874 if (width <= 1) {
1875 *endPos = text.start;
1876 return zero_I2();
1877 }
1874 /* "NoWrap" means words aren't wrapped; the line is broken at nearest character. */ 1878 /* "NoWrap" means words aren't wrapped; the line is broken at nearest character. */
1875 iWrapText wrap = { .mode = anyCharacter_WrapTextMode, 1879 iWrapText wrap = { .mode = anyCharacter_WrapTextMode,
1876 .text = text, 1880 .text = text,