From 515cef8444fe531e8a89a7e39fb0cb01940a1488 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 11 Feb 2013 18:42:51 +0000 Subject: Don't include '\0' in single-line nsfont_width call. --- desktop/textarea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3