summaryrefslogtreecommitdiff
path: root/desktop/textarea.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/textarea.c')
-rw-r--r--desktop/textarea.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c
index 8b3626761..a8e9f8869 100644
--- a/desktop/textarea.c
+++ b/desktop/textarea.c
@@ -498,7 +498,7 @@ static bool textarea_reflow(struct textarea *ta, unsigned int start)
ta->lines[0].b_length = ta->show->len - 1;
nsfont.font_width(&ta->fstyle, ta->show->data,
- ta->show->len, &x);
+ ta->show->len - 1, &x);
if (x > w)
w = x;