summaryrefslogtreecommitdiff
path: root/desktop/textarea.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-02-09 16:28:00 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-02-09 16:28:00 +0000
commit56cfa935318ef8ee3b65f38ce63c18df3b3fcf2f (patch)
treeb840409e3d38a735bc2bd72337c7c3f1684a9908 /desktop/textarea.c
parent25b036418e23ba1c8d4cbeea723714b83a45ffe9 (diff)
downloadnetsurf-56cfa935318ef8ee3b65f38ce63c18df3b3fcf2f.tar.gz
netsurf-56cfa935318ef8ee3b65f38ce63c18df3b3fcf2f.tar.bz2
Empty textarea has one line.
Diffstat (limited to 'desktop/textarea.c')
-rw-r--r--desktop/textarea.c1
1 files changed, 1 insertions, 0 deletions
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;