From 2dc8459c84e368c9b1f68b981b36da1bd921ea78 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 17 Sep 2014 19:00:20 +0100 Subject: [PATCH] Improve comment. --- desktop/textarea.c | 7 ++++--- 1 file 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--;