diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-09 16:50:30 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-09 16:50:30 +0000 |
commit | 1be54d7b104f4a91cc12113343f16c7d73f3665a (patch) | |
tree | 36459bc511d0078d94c7fe555b7b3d7053c0366f /desktop | |
parent | 56cfa935318ef8ee3b65f38ce63c18df3b3fcf2f (diff) | |
download | netsurf-1be54d7b104f4a91cc12113343f16c7d73f3665a.tar.gz netsurf-1be54d7b104f4a91cc12113343f16c7d73f3665a.tar.bz2 |
If restarting reflow for scrollbar change, need to start at line 0.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/textarea.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 - |