summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 0f511adb..2ab40387 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -859,7 +859,7 @@ static iRect run_Font_(iFont *d, const iRunArgs *args) {
859 } 859 }
860#endif 860#endif
861 prevCh = ch; 861 prevCh = ch;
862 if (maxLen == 0) { 862 if (--maxLen == 0) {
863 break; 863 break;
864 } 864 }
865 } 865 }