diff options
Diffstat (limited to 'desktop/textarea.c')
-rw-r--r-- | desktop/textarea.c | 7 |
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--; |