From 1be54d7b104f4a91cc12113343f16c7d73f3665a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 9 Feb 2013 16:50:30 +0000 Subject: If restarting reflow for scrollbar change, need to start at line 0. --- desktop/textarea.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/textarea.c b/desktop/textarea.c index 9bc1a183c..acfe6276c 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -519,7 +519,10 @@ static bool textarea_reflow(struct textarea *ta, unsigned int start) do { /* Set line count to start point */ - line = start; + if (restart) + line = 0; + else + line = start; /* Find available width */ avail_width = ta->vis_width - 2 * ta->border_width - -- cgit v1.2.3