From 56cfa935318ef8ee3b65f38ce63c18df3b3fcf2f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 9 Feb 2013 16:28:00 +0000 Subject: Empty textarea has one line. --- desktop/textarea.c | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop') diff --git a/desktop/textarea.c b/desktop/textarea.c index 9b81e30a4..9bc1a183c 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -533,6 +533,7 @@ static bool textarea_reflow(struct textarea *ta, unsigned int start) assert(ta->text.data[0] == '\0'); ta->lines[line].b_start = 0; ta->lines[line++].b_length = 0; + ta->line_count = 1; } restart = false; -- cgit v1.2.3