summaryrefslogtreecommitdiff
path: root/desktop/textarea.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-09-17 19:00:20 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-09-18 16:00:30 +0100
commit2dc8459c84e368c9b1f68b981b36da1bd921ea78 (patch)
tree2e95edd3b14f9db94e594766fb9dd882bb5b219d /desktop/textarea.c
parent87c5753d49df582b5c2c9474a8c47bb35577e163 (diff)
downloadnetsurf-2dc8459c84e368c9b1f68b981b36da1bd921ea78.tar.gz
netsurf-2dc8459c84e368c9b1f68b981b36da1bd921ea78.tar.bz2
Improve comment.
Diffstat (limited to 'desktop/textarea.c')
-rw-r--r--desktop/textarea.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c
index 9c0488a89..6a959d539 100644
--- a/desktop/textarea.c
+++ b/desktop/textarea.c
@@ -947,9 +947,10 @@ static bool textarea_reflow_multiline(struct textarea *ta,
ta->pad_top - ta->pad_bottom) /
ta->line_height;
- /* Have to start on line before where the changes are in case an
- * added space makes the text before the space on a soft-wrapped line
- * fit on the line above */
+ /* Start on the line before the first change, in case the
+ * modification on this line alters what fits on the line
+ * above. For example adding a space or deleting text on
+ * a soft-wrapped line */
if (start != 0)
start--;