[1mdiff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c[m
[1mindex 1d036939..c9779ff0 100644[m
[1m--- a/src/ui/inputwidget.c[m
[1m+++ b/src/ui/inputwidget.c[m
[36m@@ -41,6 +41,7 @@[m [mSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */[m
[m
static const int refreshInterval_InputWidget_ = 256;[m
static const size_t maxUndo_InputWidget_ = 64;[m
[32m+[m[32mstatic const int unlimitedWidth_InputWidget_ = 1000000; /* TODO: WrapText disables some functionality if maxWidth==0 */[m
[m
static void enableEditorKeysInMenus_(iBool enable) {[m
#if defined (iPlatformAppleDesktop)[m
[36m@@ -420,9 +421,10 @@[m [mstatic const char *sensitive_ = "\u25cf";[m
static iWrapText wrap_InputWidget_(const iInputWidget *d, int y) {[m
return (iWrapText){[m
.text = range_String(&line_InputWidget_(d, y)->text),[m
[31m- .maxWidth = d->maxLen == 0 ? width_Rect(contentBounds_InputWidget_(d)) : 0,[m
[31m- .mode = (d->inFlags & isUrl_InputWidgetFlag ? anyCharacter_WrapTextMode[m
[31m- : word_WrapTextMode),[m
[32m+[m[32m .maxWidth = d->maxLen == 0 ? width_Rect(contentBounds_InputWidget_(d))[m
[32m+[m[32m : unlimitedWidth_InputWidget_,[m
[32m+[m[32m .mode =[m
[32m+[m[32m (d->inFlags & isUrl_InputWidgetFlag ? anyCharacter_WrapTextMode : word_WrapTextMode),[m
.overrideChar = (d->inFlags & isSensitive_InputWidgetFlag ? sensitiveChar_ : 0),[m
};[m
}[m
[36m@@ -829,13 +831,13 @@[m [mvoid setText_InputWidget(iInputWidget *d, const iString *text) {[m
updateLine_InputWidget_(d, i.value); /* count number of visible lines */[m
}[m
updateLineRangesStartingFrom_InputWidget_(d, 0);[m
[31m- //if (isFocused_Widget(d)) {[m
[31m- d->cursor = cursorMax_InputWidget_(d);[m
[31m-// }[m
[32m+[m[32m d->cursor = cursorMax_InputWidget_(d);[m
[32m+[m[32m if (!isFocused_Widget(d)) {[m
[32m+[m[32m iZap(d->mark);[m
[32m+[m[32m }[m
// else {[m
// d->cursor.y = iMin(d->cursor.y, (int) size_Array(&d->lines) - 1);[m
// d->cursor.x = iMin(d->cursor.x, size_String(&cursorLine_InputWidget_(d)->text));[m
[31m- iZap(d->mark);[m
// }[m
if (!isFocused_Widget(d)) {[m
d->inFlags |= needUpdateBuffer_InputWidgetFlag;[m
[36m@@ -1257,7 +1259,7 @@[m [mstatic iInt2 coordCursor_InputWidget_(const iInputWidget *d, iInt2 coord) {[m
return cursorMax_InputWidget_(d);[m
}[m
iWrapText wrapText = {[m
[31m- .maxWidth = d->maxLen == 0 ? width_Rect(bounds) : 0,[m
[32m+[m[32m .maxWidth = d->maxLen == 0 ? width_Rect(bounds) : unlimitedWidth_InputWidget_,[m
.mode = (d->inFlags & isUrl_InputWidgetFlag ? anyCharacter_WrapTextMode : word_WrapTextMode),[m
.hitPoint = relCoord,[m
.overrideChar = (d->inFlags & isSensitive_InputWidgetFlag ? sensitiveChar_ : 0),[m
[36m@@ -1839,7 +1841,7 @@[m [mstatic void draw_InputWidget_(const iInputWidget *d) {[m
: isFocused /*&& !isEmpty_Array(&d->lines)*/ ? uiInputTextFocused_ColorId[m
: uiInputText_ColorId;[m
iWrapText wrapText = {[m
[31m- .maxWidth = d->maxLen == 0 ? width_Rect(contentBounds) : 0,[m
[32m+[m[32m .maxWidth = d->maxLen == 0 ? width_Rect(contentBounds) : unlimitedWidth_InputWidget_,[m
.mode = (d->inFlags & isUrl_InputWidgetFlag ? anyCharacter_WrapTextMode[m
: word_WrapTextMode),[m
.overrideChar = (d->inFlags & isSensitive_InputWidgetFlag ? sensitiveChar_ : 0),[m
text/plain
This content has been proxied by September (ba2dc).