aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--form.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/form.c b/form.c
index 9c40b44..fdad786 100644
--- a/form.c
+++ b/form.c
@@ -526,8 +526,6 @@ textfieldrep(Str s, int width)
for (i = 0; i < s->length; i += c_len) {
c_type = get_mctype((unsigned char *)&s->ptr[i]);
c_len = get_mclen(&s->ptr[i]);
- if (i + c_len > s->length)
- break;
if (s->ptr[i] == '\r')
continue;
k = j + get_mcwidth(&s->ptr[i]);