=> c1001c3ab6e6b0aa42cb4dfeec501845a0091e99
[1mdiff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c[m [1mindex 9261da0c..aa55f3f0 100644[m [1m--- a/src/ui/inputwidget.c[m [1m+++ b/src/ui/inputwidget.c[m [36m@@ -742,15 +742,17 @@[m [mstatic void startOrStopCursorTimer_InputWidget_(iInputWidget *d, int doStart) {[m #else /* using a system-provided text control */[m [m static void updateAllLinesAndResizeHeight_InputWidget_(iInputWidget *d) {[m [31m- /* Rewrap the buffered text and resize accordingly. */[m [31m- iWrapText wt = wrap_InputWidget_(d, 0);[m [31m- /* TODO: Set max lines limit for WrapText. */[m [31m- const int height = measure_WrapText(&wt, d->font).bounds.size.y;[m [31m- /* We use this to store the number wrapped lines for determining widget height. */[m [31m- d->visWrapLines.start = 0;[m [31m- d->visWrapLines.end = iMax(d->minWrapLines,[m [31m- iMin(d->maxWrapLines, height / lineHeight_Text(d->font)));[m [31m- updateMetrics_InputWidget_(d);[m [32m+[m[32m if (width_Widget(d) >= minWidth_InputWidget_) {[m [32m+[m[32m /* Rewrap the buffered text and resize accordingly. */[m [32m+[m[32m iWrapText wt = wrap_InputWidget_(d, 0);[m [32m+[m[32m /* TODO: Set max lines limit for WrapText. */[m [32m+[m[32m const int height = measure_WrapText(&wt, d->font).bounds.size.y;[m [32m+[m[32m /* We use this to store the number wrapped lines for determining widget height. */[m [32m+[m[32m d->visWrapLines.start = 0;[m [32m+[m[32m d->visWrapLines.end = iMax(d->minWrapLines,[m [32m+[m[32m iMin(d->maxWrapLines, height / lineHeight_Text(d->font)));[m [32m+[m[32m updateMetrics_InputWidget_(d);[m [32m+[m[32m }[m }[m [m #endif[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).